/* Login Page Design - Light Theme */

body {
    background-color: #f8fafc;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    background-attachment: fixed;
    color: #0f172a;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 30px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 36px 36px 28px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    animation: cardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

h1 {
    text-align: center;
    margin-bottom: 18px;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    background: linear-gradient(135deg, #0f172a 40%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    box-sizing: border-box;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: #ffffff;
}

.form-group input[type="submit"] {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.2);
    font-family: 'Outfit', sans-serif;
}

.form-group input[type="submit"]:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.form-group input[type="submit"]:active {
    transform: translateY(0);
}

/* Flash Messages */
.flash-messages {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.flash-messages li {
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.flash-messages .success {
    background-color: rgba(34, 197, 94, 0.08);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.flash-messages .danger {
    background-color: rgba(239, 68, 68, 0.08);
    color: #dc3545;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.text-center {
    text-align: center;
    margin-top: auto;
    padding-top: 16px;
    font-size: 0.88rem;
    color: #64748b;
}

.text-center a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.text-center a:hover {
    color: #6366f1;
    text-decoration: underline;
}

/* Password show/hide toggle */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding-right: 44px !important;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.9rem;
    padding: 4px;
    transition: color 0.15s;
    line-height: 1;
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: #4f46e5;
}

/* Auth nav hint */
.auth-nav-hint {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    color: #94a3b8;
}

.auth-nav-hint a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.auth-nav-hint a:hover {
    text-decoration: underline;
}