:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --input-bg: rgba(15, 23, 42, 0.6);
    --input-border: #334155;
    --error-color: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    perspective: 1000px;
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px) rotateX(-10deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo svg {
    color: var(--primary-color);
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(79, 70, 229, 0.4));
}

.logo h2 {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.error-message {
    color: var(--error-color);
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
    background: rgba(239, 68, 68, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.hidden {
    display: none;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(79, 70, 229, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content-between: space-between;
}

.align-items-center {
    align-items: center;
}

.forgot-password-container {
    text-align: center;
    margin-top: 18px;
}

.link-forgot {
    font-size: 13px;
    color: #818cf8;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}

.link-forgot:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

.forgot-header {
    text-align: center;
    margin-bottom: 20px;
}

.forgot-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.forgot-header p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.success-message {
    color: #10b981;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
    background: rgba(16, 185, 129, 0.1);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    line-height: 1.4;
}

.back-to-login {
    margin-top: 20px;
    text-align: center;
}

.link-back {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
}

.link-back:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

