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

:root {
    --primary: #8B5CF6;
    --primary-dark: #6D28D9;
    --secondary: #EC4899;
    --accent: #F97316;
    --dark: #1E1B2E;
    --darker: #0F0D1A;
    --gray: #2D2A3E;
    --light-gray: #A78BFA;
    --error: #EF4444;
    --success: #10B981;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 50%, var(--darker) 100%);
    color: #fff;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent);
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    animation: pulse 6s ease-in-out infinite;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15), transparent);
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateX(-50%) scale(1.15); opacity: 0.8; }
}

/* Back Button */
.btn-back {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--gray);
    border: 2px solid transparent;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.btn-back:hover {
    background: var(--dark);
    border-color: var(--primary);
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.back-arrow {
    transition: transform 0.3s;
    filter: brightness(0) invert(1);
}

.btn-back:hover .back-arrow {
    transform: translateX(-3px);
}

/* Login Wrapper */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 4rem);
    position: relative;
    z-index: 1;
}

.login-container {
    background: rgba(30, 27, 46, 0.9);
    backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: 25px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 70px rgba(139, 92, 246, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6);
    animation: float 3s ease-in-out infinite;
    padding: 5px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.login-header h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.highlight {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--light-gray);
    font-size: 0.95rem;
}

/* Form */
.login-form {
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.input-container {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--gray);
    border: 2px solid transparent;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--darker);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.form-group input::placeholder {
    color: rgba(167, 139, 250, 0.5);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--light-gray);
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: var(--gray);
    border: 2px solid var(--primary);
    border-radius: 5px;
    margin-right: 0.6rem;
    position: relative;
    transition: all 0.3s;
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--primary);
}

.checkbox-container input:checked ~ .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(139, 92, 246, 0.7);
}

.btn-login:active {
    transform: translateY(-1px);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Signup Link */
.signup-link {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(167, 139, 250, 0.2);
}

.signup-link p {
    color: var(--light-gray);
    font-size: 0.95rem;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    .btn-back {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .back-arrow {
        width: 30px;
        height: 24px;
    }

    .back-text {
        display: none;
    }

    .login-container {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }

    .login-header h1 {
        font-size: 1.8rem;
    }

    .logo-circle {
        width: 80px;
        height: 80px;
    }

    .logo-img {
        width: 70px;
        height: 70px;
    }
}
