* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --secondary: #FF6B9D;
    --accent: #00D4FF;
    --dark: #121826;
    --darker: #0A0E17;
    --dark-light: #1E2535;
    --light: #E2E8F0;
    --gray: #94A3B8;
    --success: #10B981;
    --error: #EF4444;
}

body {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 50%, #1a1f2e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--light);
}

.main {
    width: 100%;
    max-width: 1200px;
    background: linear-gradient(145deg, rgba(30, 37, 53, 0.9) 0%, rgba(18, 24, 38, 0.95) 100%);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.8s ease-out;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    background: rgba(10, 14, 23, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--light) 0%, var(--gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.back-btn {
    color: var(--gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.back-btn:hover {
    color: var(--light);
}

.container {
    display: flex;
    min-height: 600px;
}

.login-section {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 14, 23, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--gray);
    font-size: 16px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--light);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    transition: color 0.3s;
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    color: var(--light);
    backdrop-filter: blur(5px);
}

.form-control::placeholder {
    color: var(--gray);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-control:focus + i {
    color: var(--primary);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.6);
}

.login-btn:active {
    transform: translateY(0);
}

.form-footer {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.signup-link {
    color: var(--gray);
    font-size: 14px;
}

.signup-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: underline;
}

.login-info {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.login-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-info p {
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.feature i {
    color: var(--primary);
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.feature span {
    color: var(--light);
    font-size: 14px;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    animation: float 15s infinite linear;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 5%;
    animation-duration: 20s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 85%;
    animation-duration: 25s;
    animation-direction: reverse;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 10%;
    animation-duration: 15s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(120deg); }
    66% { transform: translate(-15px, 15px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: var(--dark-light);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(150%);
    transition: transform 0.4s ease;
    z-index: 1000;
    border-left: 4px solid var(--success);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--error);
}

.toast i {
    font-size: 20px;
}

.toast.success i {
    color: var(--success);
}

.toast.error i {
    color: var(--error);
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .login-section, .login-info {
        padding: 40px 30px;
    }
    
    .login-info {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    header {
        padding: 20px;
    }
    
    .form-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}