﻿
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* New color scheme - elegant purple gradient */
    --primary-color: #6c63ff;
    --primary-light: #8b80ff;
    --primary-dark: #5046e5;
    --secondary-color: #c197ff;
    --accent-color: #ff6584;
    --text-dark: #1a1a2e;
    --text-light: #6b7280;
    --white: #ffffff;
    --error: #ff4757;
    --success: #00d0a0;
    --background: #f9faff;
    --card-shadow: 0 15px 35px rgba(108, 99, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #8b80ff 0%, #6c63ff 50%, #5046e5 100%);
    color: var(--text-dark);
    line-height: 1.6;
    height: 100vh;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.login-card {
    width: 100%;
    max-width: 450px;
    background-color: var(--white);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    transform: translateY(0);
    transition: all 0.4s ease;
}

    .login-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(108, 99, 255, 0.2);
    }

.login-header {
    padding: 35px 35px 25px;
    text-align: center;
    position: relative;
}

    .login-header:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, var(--primary-light), var(--secondary-color), var(--accent-color));
        border-radius: 3px 3px 0 0;
    }

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 400;
}

.login-form {
    padding: 0 35px 35px;
}

.form-group {
    margin-bottom: 26px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-dark);
    text-align: left;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

    .form-input:focus {
        outline: none;
        border-color: var(--primary-light);
        background-color: var(--white);
        box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
    }

.password-toggle {
    position: absolute;
    right: 18px;
    top: 48px;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

    .password-toggle:hover {
        color: var(--primary-dark);
    }

.login-button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

    .login-button:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: all 0.6s;
    }

    .login-button:hover:before {
        left: 100%;
    }

    .login-button:hover {
        background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
        transform: translateY(-2px);
        box-shadow: 0 8px 15px rgba(108, 99, 255, 0.4);
    }

    .login-button:active {
        transform: translateY(0);
    }

.login-footer {
    margin-top: 22px;
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
}

.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

    .signup-link:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

.divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.divider-text {
    padding: 0 15px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeIn 0.7s ease-out;
}

/* Loading animation for button */
.login-button.loading {
    position: relative;
    color: transparent;
}

    .login-button.loading::after {
        content: "";
        position: absolute;
        width: 22px;
        height: 22px;
        top: 50%;
        left: 50%;
        margin-left: -11px;
        margin-top: -11px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-card {
        max-width: 100%;
    }

    .login-header {
        padding: 25px 20px 15px;
    }

    .login-form {
        padding: 0 20px 25px;
    }

    .form-input {
        padding: 14px 16px;
    }

    .login-button {
        padding: 14px;
    }
}


/* Add these styles to your existing Login.css file */

/* OTP Input Styling */
.otp-container {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 30px;
    gap: 10px;
}

.otp-input {
    width: 50px;
    height: 60px;
    padding: 0;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
    color: var(--primary-dark);
}

    .otp-input:focus {
        outline: none;
        border-color: var(--primary-light);
        background-color: var(--white);
        box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
        transform: translateY(-2px);
    }

    .otp-input::-webkit-inner-spin-button,
    .otp-input::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

/* Resend OTP Button */
.resend-container {
    text-align: center;
    margin-top: 20px;
}

.resend-button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .resend-button:hover:not(.disabled) {
        color: var(--primary-dark);
        background-color: rgba(108, 99, 255, 0.08);
    }

    .resend-button.disabled {
        color: var(--text-light);
        cursor: not-allowed;
    }

    .resend-button.loading {
        position: relative;
        color: transparent;
    }

        .resend-button.loading::after {
            content: "";
            position: absolute;
            width: 16px;
            height: 16px;
            top: 50%;
            left: 50%;
            margin-left: -8px;
            margin-top: -8px;
            border: 2px solid rgba(108, 99, 255, 0.3);
            border-top-color: var(--primary-color);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
    .otp-container {
        gap: 6px;
    }

    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
}

/* Animation for OTP input */
.otp-input {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

    .otp-input:nth-child(1) {
        animation-delay: 0.1s;
    }

    .otp-input:nth-child(2) {
        animation-delay: 0.2s;
    }

    .otp-input:nth-child(3) {
        animation-delay: 0.3s;
    }

    .otp-input:nth-child(4) {
        animation-delay: 0.4s;
    }

    .otp-input:nth-child(5) {
        animation-delay: 0.5s;
    }

    .otp-input:nth-child(6) {
        animation-delay: 0.6s;
    }



/* Add these styles to your existing Login.css file */

/* Textarea styling */
.form-textarea {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
    resize: vertical;
    min-height: 120px;
}

    .form-textarea:focus {
        outline: none;
        border-color: var(--primary-light);
        background-color: var(--white);
        box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
    }

/* Back button styling */
.back-button {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    background-color: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    text-align: center;
}

    .back-button:hover {
        background-color: #f3f4ff;
        border-color: var(--primary-light);
    }

    .back-button:active {
        transform: translateY(1px);
    }

/* Notes footer styling */
.notes-footer {
    margin-bottom: 20px;
    padding-top: 5px;
}

.notes-user {
    font-size: 14px;
    color: var(--text-light);
    text-align: left;
}

.username-highlight {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Animation for the textarea */
.form-textarea {
    animation: fadeIn 0.6s ease-out;
}

/* Flow Navigation Indicators */
.login-flow-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.flow-step {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e5e7eb;
    margin: 0 4px;
}

    .flow-step.active {
        background-color: var(--primary-color);
        transform: scale(1.2);
    }

/* Page transitions */
.page-transition-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms, transform 300ms;
}

.page-transition-exit {
    opacity: 1;
    transform: translateY(0);
}

.page-transition-exit-active {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 300ms, transform 300ms;
}