﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f472b6;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--dark);
}

.container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-panel {
    flex: 1;
    /*background: linear-gradient(135deg, var(--primary), var(--primary-dark));*/
    background: linear-gradient(135deg, #7b3fe4, #b56cff);
    padding: 50px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .left-panel::before {
        content: '';
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        top: -100px;
        right: -100px;
    }

    .left-panel::after {
        content: '';
        position: absolute;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        bottom: -80px;
        right: 50px;
    }

.logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    z-index: 1;
}

    .logo i {
        margin-right: 10px;
        font-size: 32px;
    }

.tagline {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    z-index: 1;
}

.features {
    list-style: none;
    margin-top: 40px;
    z-index: 1;
}

    .features li {
        margin-bottom: 20px;
        display: flex;
        align-items: center;
    }

    .features i {
        background: rgba(255, 255, 255, 0.2);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
    }

.right-panel {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 40px;
}

    .form-header h2 {
        font-size: 32px;
        color: var(--dark);
        margin-bottom: 10px;
    }

    .form-header p {
        color: var(--gray);
    }

.form-group {
    margin-bottom: 24px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--dark);
        font-size: 14px;
    }

.input-with-icon {
    position: relative;
}

    .input-with-icon i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gray);
        font-size: 18px;
    }

.form-control {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    outline: none;
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 18px;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
}

    .remember-me input {
        margin-right: 8px;
        accent-color: var(--primary);
    }

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

    .forgot-password:hover {
        color: var(--primary-dark);
    }

.btn {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: center;
    background-color: #b56cff;
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 25px;
    text-decoration: none; /* remove underline */
}


    .btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

    .btn:active {
        transform: translateY(0);
    }

.divider {
    text-align: center;
    position: relative;
    margin: 30px 0;
    color: var(--gray);
    font-size: 14px;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--gray-light);
    }

    .divider span {
        background: white;
        padding: 0 15px;
        position: relative;
    }

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    flex: 1;
    padding: 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

    .social-btn:hover {
        border-color: var(--primary);
        transform: translateY(-2px);
    }

    .social-btn i {
        margin-right: 10px;
        font-size: 18px;
    }

.signup-link {
    text-align: center;
    color: var(--gray);
    font-size: 15px;
}

    .signup-link a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
        transition: var(--transition);
    }

        .signup-link a:hover {
            color: var(--primary-dark);
        }

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 18px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    transform: translateX(150%);
    transition: transform 0.4s ease;
    z-index: 1000;
}

    .toast.show {
        transform: translateX(0);
    }

    .toast i {
        font-size: 22px;
        margin-right: 15px;
    }

    .toast.success i {
        color: var(--success);
    }

    .toast.error i {
        color: var(--error);
    }

.toast-content h4 {
    margin-bottom: 4px;
    font-size: 16px;
}

.toast-content p {
    font-size: 14px;
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        max-width: 500px;
    }

    .left-panel {
        padding: 40px 30px;
    }

    .right-panel {
        padding: 40px 30px;
    }

    .social-login {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .left-panel {
        padding: 30px 20px;
    }

    .right-panel {
        padding: 30px 20px;
    }

    .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Animation for form elements */
.form-group {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

    .form-group:nth-child(1) {
        animation-delay: 0.1s;
    }

    .form-group:nth-child(2) {
        animation-delay: 0.2s;
    }

.options {
    animation-delay: 0.3s;
}

.btn {
    animation-delay: 0.4s;
}

.divider {
    animation-delay: 0.5s;
}

.social-login {
    animation-delay: 0.6s;
}

.signup-link {
    animation-delay: 0.7s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.signup-cta {
    margin-top: 25px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(123,63,228,.08), rgba(181,108,255,.12));
    border: 1px solid rgba(123,63,228,.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeInUp .6s ease;
}

    .signup-cta h4 {
        margin: 0;
        font-size: 16px;
        color: #1a1f36;
    }

    .signup-cta p {
        margin: 4px 0 0;
        font-size: 13px;
        color: #666;
    }

.cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg,#7b3fe4,#b56cff);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(123,63,228,.35);
    transition: .3s;
}

    .cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(123,63,228,.55);
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}
