:root {
    --primary: #1E90FF;
    --primary-dark: #1874CD;
    --accent: #FF6600;
    --purple-light: #E8E0F0;
    --purple: #9B7ED9;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --bg-primary: #F9F9F9;
    --bg-secondary: #FFFFFF;
    --bg-dark: #1a202c;
    --border: #E0E0E0;
    --success: #28A745;
    --error: #DC3545;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: #ffffff;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent) 0%, #f5576c 100%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    pointer-events: none;
}



.login-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

.login-container {
    width: 100%;
    max-width: 520px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(30, 144, 255, 0.1);
    position: relative;
}

@media (min-width: 1024px) {
    .login-container {
        max-width: 560px;
    }

    .login-card {
        padding: 56px;
    }

    .login-title {
        font-size: 32px;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    margin-right: 12px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent) 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.login-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(30, 144, 255, 0.1);
    border-radius: var(--radius);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: var(--transition);
}

@media (min-width: 1024px) {
    .form-input {
        padding: 18px 24px;
        font-size: 18px;
    }
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}



.form-input::placeholder {
    color: var(--text-muted);
}

.input-group {
    display: flex;
    gap: 12px;
}

.input-group .form-input {
    flex: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .btn {
        padding: 18px 32px;
        font-size: 18px;
    }
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(255, 102, 0, 0.39);
}



.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}



.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}



.login-footer {
    text-align: center;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.login-footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

.privacy-policy {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

.privacy-policy a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 400;
}

.privacy-policy a:hover {
    text-decoration: underline;
}

.error-message {
    color: var(--error);
    font-size: 14px;
    margin-top: 8px;
}

.success-message {
    color: var(--success);
    font-size: 14px;
    margin-top: 8px;
}

.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .login-card {
        padding: 32px;
    }

    .login-title {
        font-size: 24px;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group .form-input {
        width: 100%;
    }
}