/* Register Page Styles */
:root {
    --primary-color: #5B3EBF;
    --primary-light: #7C66D4;
    --primary-dark: #4A32A3;
    --accent-color: #6FEBD4;
    --accent-hover: #5CD4BE;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --border-radius: 16px;
    --box-shadow: 0 8px 30px rgba(91, 62, 191, 0.1);
}

body {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    padding: 1rem;
    margin: 0;
}

.container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
}

.register-container {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    overflow: hidden;
    color: var(--white);
    animation: fadeInScale 0.6s ease-out;
}

.register-left {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--primary-dark);
    animation: slideInFromLeft 0.8s ease-out;
}

.register-left h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--white);
}

.register-left h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.register-right {
    flex: 1;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
   
}

.register-header {
    /* margin-bottom: 2.5rem; */
    margin-bottom: 1.5rem;
}

.register-header h1 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 600;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.register-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transition: all 0.2s ease-in-out;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(111, 235, 212, 0.15);
    outline: none;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--white);
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 235, 212, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.loading {
    position: relative;
    background: var(--accent-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--primary-dark);
    pointer-events: none;
}

.btn-primary.loading::before {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--primary-dark);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.login-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.logo img {
    height: 48px;
    width: auto;
    animation: fadeInScale 0.8s ease-out 0.3s both;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    animation: slideInFromRight 0.8s ease-out 0.4s both;
}

/* Error message styling */
.error-message {
    background-color: rgba(255, 71, 87, 0.15);
    color: #FF4757;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
    font-size: 0.875rem;
    display: none;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: calc(100% - 3rem);
    width: 420px;
}

.toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.toast-content {
    flex-grow: 1;
    padding-right: 2rem;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-message {
    font-size: 0.875rem;
    color: inherit;
    opacity: 0.9;
    line-height: 1.4;
    word-wrap: break-word;
}

.toast-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.toast-close:hover {
    opacity: 1;
}

/* Toast Variants */
.toast-success {
    background-color: rgba(231, 249, 240, 0.95);
    color: #0C622E;
    border: 1px solid rgba(209, 243, 228, 0.4);
}

.toast-info {
    background-color: rgba(231, 243, 251, 0.95);
    color: #0C4A6E;
    border: 1px solid rgba(209, 233, 247, 0.4);
}

.toast-warning {
    background-color: rgba(254, 244, 230, 0.95);
    color: #9A3412;
    border: 1px solid rgba(252, 236, 209, 0.4);
}

.toast-error {
    background-color: rgba(254, 231, 231, 0.95);
    color: #991B1B;
    border: 1px solid rgba(252, 209, 209, 0.4);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%) translateY(0);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%) translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

/* Page Load Animations */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animations to elements */
.register-container {
    animation: fadeInScale 0.6s ease-out;
}

.register-left {
    animation: slideInFromLeft 0.8s ease-out;
}



.register-header h1 {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.register-header p {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.google-btn {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.divider {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.step-indicator {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

#emailForm, #verifyForm, #registrationForm {
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.login-link {
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

/* Logo animation */
.logo img {
    animation: fadeInScale 0.8s ease-out 0.3s both;
}

.logo-text {
    animation: slideInFromRight 0.8s ease-out 0.4s both;
}

/* Button hover animations */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(111, 235, 212, 0.3);
}

.google-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Form field focus animations */
.form-control {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    transform: translateY(-1px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 0;
        background: var(--primary-color);
    }

    .container {
        padding: 0;
    }

    .register-container {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        flex-direction: column;
        animation: mobileSlideUp 0.5s ease-out;
    }

    .register-left {
        display: none;
    }

    .register-right {
        flex: 1;
        padding: 2rem;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        animation: mobileFadeIn 0.6s ease-out;
    }

    .register-header h1 {
        animation: mobileSlideUp 0.5s ease-out 0.1s both;
    }

    .register-header p {
        animation: mobileSlideUp 0.5s ease-out 0.2s both;
    }

    .google-btn {
        animation: mobileSlideUp 0.5s ease-out 0.3s both;
    }

    .divider {
        animation: mobileSlideUp 0.5s ease-out 0.4s both;
    }

    .step-indicator {
        animation: mobileSlideUp 0.5s ease-out 0.5s both;
    }

    #emailForm {
        animation: mobileSlideUp 0.5s ease-out 0.6s both;
    }

    #verifyForm {
        animation: mobileSlideUp 0.5s ease-out 0.6s both;
    }

    #registrationForm {
        animation: mobileSlideUp 0.5s ease-out 0.6s both;
    }

    .login-link {
        animation: mobileSlideUp 0.5s ease-out 0.7s both;
        margin-top: 1.5rem;
    }

    /* Mobile animations */
    @keyframes mobileSlideUp {
        0% {
            opacity: 0;
            transform: translateY(30px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes mobileFadeIn {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }

    /* Enhanced mobile hover effects */
    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(111, 235, 212, 0.2);
    }

    .google-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .form-control:focus {
        transform: none;
        border-color: var(--accent-color);
    }

    /* Mobile Toast Styles */
    .toast-container {
        top: auto;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: none;
    }

    .toast {
        animation: mobileToastSlideUp 0.3s ease-out;
    }

    @keyframes mobileToastSlideUp {
        0% {
            opacity: 0;
            transform: translateY(100%);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes mobileToastSlideOut {
        0% {
            opacity: 1;
            transform: translateY(0);
        }
        100% {
            opacity: 0;
            transform: translateY(100%);
        }
    }
}

/* Add smooth touch interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:active {
        transform: translateY(1px);
        transition: transform 0.1s;
    }

    .google-btn:active {
        transform: translateY(1px);
        transition: transform 0.1s;
    }

    .form-control {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Reduce animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Step Indicator Styles */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 0px auto;
    position: relative;
    width: 140px;

}

.step {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Connecting lines */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    width: 32px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%);
}

.step.active {
    background: var(--accent-color);
    width: 12px;
    height: 12px;
    transform: translateY(-2px);
}

.step.completed {
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    transform: translateY(-2px);
}

.step.completed::before {
    content: '✓';
    position: absolute;
    color: var(--primary-dark);
    font-size: 8px;
    font-weight: bold;
}

/* Completed step's line */
.step.completed:not(:last-child)::after {
    background: var(--accent-color);
}

/* Active step's next line */
.step.active:not(:last-child)::after {
    background: rgba(255, 255, 255, 0.4);
} 