/* 
   MSFP - Premium Auth Styling (Inspired by COWEC)
   Design system for login and forgot password pages
*/

:root {
    --primary-color: #28a745;
    --primary-hover: #218838;
    --bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border-color: #dfe6e9;
    --input-focus: rgba(40, 167, 69, 0.25);
}

body.auth-page {
    background: linear-gradient(rgba(248, 249, 250, 0.8), rgba(233, 236, 239, 0.8)), url('../images/auth-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.auth-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 450px;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

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

.auth-logo {
    margin-bottom: 35px;
}

.auth-logo img {
    transition: transform 0.3s ease;
}

.auth-logo img:hover {
    transform: scale(1.05);
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.5;
}

.form-group {
    text-align: left;
    margin-bottom: 25px;
}

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

.form-control-premium {
    height: 52px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    padding: 0 18px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
    width: 100%;
}

.form-control-premium:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--input-focus);
    background-color: #fff;
    outline: none;
}

.btn-premium {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    background-color: var(--primary-color);
    border: none;
    color: white;
    margin-top: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-premium:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

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

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.footer-links {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #f1f2f6;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links p {
    margin: 0;
}

/* Response messaging */
#msg {
    margin-bottom: 20px;
    border-radius: 10px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .auth-card {
        padding: 40px 25px;
    }
    
    .auth-title {
        font-size: 24px;
    }
}
