/*
 * Global styles for the custom FinAS system.
 *
 * The layout is intentionally simple and mobile friendly.  A neutral
 * background wraps a centered card where the login form lives.
 */

/* Apply a subtle gradient background similar to the original site. */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e6edf7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wrapper to ensure content is centered and responsive. */
.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
    box-sizing: border-box;
}

/* Card container with shadow to lift it off the page. */
.login-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 2rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Placeholder logo styling. */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}
.logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: #663399;
}

/* Navigation layout.  When inside a navbar, display links horizontally. */
.navbar nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.card-title {
    text-align: center;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #444;
}

/* Style labels and inputs uniformly. */
.login-form label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.25rem;
}
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.login-form input:focus {
    outline: none;
    border-color: #8db200;
    box-shadow: 0 0 0 2px rgba(141, 178, 0, 0.2);
}

/* Password field wrapper to position the toggle button. */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    color: #637381;
}
.toggle-password:focus {
    outline: none;
}

/* Options row containing remember me and login button. */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.remember {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
}
.remember input {
    margin-right: 0.3rem;
}

/* Primary button styling. */
.btn {
    background-color: #004c99;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn:hover {
    background-color: #003d7a;
}

/* Secondary button (language change). */
.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-secondary:hover {
    background-color: #d5d5d5;
}

/* Links styling. */
.links {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.links a {
    color: #004c99;
    text-decoration: none;
}
.links a:hover {
    text-decoration: underline;
}

/* Back link styling. */
.back-link {
    text-align: center;
    margin-top: 0.25rem;
}
.back-link a {
    color: #333;
    text-decoration: none;
    font-size: 0.8rem;
}
.back-link a:hover {
    text-decoration: underline;
}

/* Language selection row. */
.language {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
select {
    padding: 0.4rem;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Responsive adjustments for smaller screens. */
@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
    }
    .btn {
        padding: 0.5rem 1rem;
    }
}