/**
 * CASEC C3 - Login Page Styles
 * Based on Figma design
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    padding: 60px 48px;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: 506px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header .logo {
    width: 180px;
    height: auto;
    margin-bottom: 48px;
}

.login-header h1 {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.login-header p {
    color: #666;
    font-size: 15px;
    font-weight: 400;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-error {
    background-color: #fff3f3;
    border: 1px solid #ffdddd;
    color: #d32f2f;
}

.alert-success {
    background-color: #f0f9ff;
    border: 1px solid #bfdbfe;
    color: #1976d2;
}

.alert strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    transition: background-color 0.2s;
    background: #e8e8e8;
    font-family: inherit;
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:focus {
    outline: none;
    background: #e0e0e0;
}

.form-group input:hover:not(:focus) {
    background: #e4e4e4;
}

.forgot-password {
    display: inline-block;
    margin-top: 8px;
    color: #5856d6;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Button Styles */
.submit-btn {
    width: 100%;
    padding: 13px 16px;
    background: #144566;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: inherit;
    margin-top: 12px;
}

.submit-btn:hover {
    background: #0f3450;
}

.submit-btn:active {
    background: #0a2639;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer Styles */
.login-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 40px 32px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-header .logo {
        width: 150px;
        margin-bottom: 36px;
    }

    .form-group input {
        padding: 10px 12px;
    }

    .submit-btn {
        padding: 12px 14px;
        font-size: 15px;
    }
}
