/* register.css - Registration Page Styles */

:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #7209b7;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    overflow-x: hidden;
}

.register-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(5px);
    animation: float 20s infinite ease-in-out;
}

.bubble:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
}

.bubble:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
}

.bubble:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 30%;
}

.bubble:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 30%;
}

.bubble:nth-child(5) {
    width: 60px;
    height: 60px;
    bottom: 10%;
    right: 20%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }

    25% {
        transform: translateY(-20px) translateX(10px) scale(1.05);
    }

    50% {
        transform: translateY(10px) translateX(-10px) scale(0.95);
    }

    75% {
        transform: translateY(20px) translateX(5px) scale(1.02);
    }
}

/* Register Card */
.register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Header */
.card-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.back-link {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-3px);
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3);
}

.card-header h2 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.card-header p {
    color: #666;
    font-size: 0.95rem;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    line-height: 36px;
    font-weight: 600;
    color: #999;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.step-label {
    display: block;
    font-size: 0.85rem;
    color: #999;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.step.completed .step-label {
    color: var(--success-color);
}

/* Form Styles */
.register-form {
    margin-top: 30px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-text {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.input-group:focus-within {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.input-icon {
    position: absolute;
    left: 20px;
    color: #999;
    z-index: 1;
    transition: color 0.3s ease;
}

.input-icon-right {
    position: absolute;
    right: 20px;
    color: #999;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.input-icon-right:hover {
    color: var(--primary-color);
}

.input-group:focus-within .input-icon {
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 15px 50px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--dark-color);
}

textarea.form-control {
    padding: 15px 20px 15px 50px;
    resize: vertical;
    min-height: 100px;
}

.form-control:focus {
    outline: none;
    box-shadow: none;
}

.form-control::placeholder {
    color: #999;
}

.input-validation {
    position: absolute;
    right: 20px;
    font-size: 1.2rem;
}

.input-validation.valid {
    color: var(--success-color);
}

.input-validation.invalid {
    color: var(--danger-color);
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    background: var(--danger-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Terms Section */
.terms-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-check:last-child {
    margin-bottom: 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-label {
    color: #666;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.2);
    color: var(--danger-color);
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: var(--success-color);
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary,
.btn-next {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover,
.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #45a049);
    color: white;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

/* Divider */
.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    position: relative;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #999;
    font-size: 0.9rem;
}

/* Social Register */
.social-register {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-social {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    background: white;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-social:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.btn-facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

/* Login Link */
.login-link {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

.login-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 576px) {
    .register-container {
        padding: 10px;
    }

    .register-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .card-header h2 {
        font-size: 1.5rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        line-height: 31px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .form-control {
        padding: 12px 45px;
        font-size: 0.95rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        padding: 12px;
        font-size: 0.95rem;
    }
}