:root {
    /* Termofrigo colors from logo and website */
    --primary-blue: #0A3D74; /* Dark blue */
    --secondary-blue: #00A3E0; /* Light blue accent */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #f4f6f9;
    --bg-card: #ffffff;
    --danger: #e74c3c;
    --success: #2ecc71;
    --border-color: #e1e5eb;
    --focus-ring: rgba(0, 163, 224, 0.4);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-image: linear-gradient(135deg, rgba(10, 61, 116, 0.05) 0%, rgba(0, 163, 224, 0.1) 100%);
}

.login-container {
    width: 100%;
    max-width: 440px;
    animation: fadeIn 0.6s ease-out;
}

.login-card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(10, 61, 116, 0.08);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
}

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

.brand-logo {
    max-width: 200px;
    height: auto;
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header h2 {
    color: var(--primary-blue);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Alert Box */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s;
}

.alert.hidden {
    display: none;
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

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

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.input-group input[type="text"],
.input-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafbfe;
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px var(--focus-ring);
    background-color: #fff;
}

.input-group input::placeholder {
    color: #aab2bd;
}

/* Row Actions */
.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.remember-me input {
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.forgot-password {
    font-size: 13px;
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Primary Button */
.btn-primary-login {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary-login:hover {
    background-color: #082d56;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 61, 116, 0.2);
}

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

.btn-primary-login:disabled {
    background-color: #a0b2c6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loader Animation inside button */
.btn-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;
    position: absolute;
}

.btn-loader.hidden {
    display: none;
}

/* Footer Section */
.support-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.support-footer a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 500;
}

.support-footer a:hover {
    text-decoration: underline;
}

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

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

/* Mobile responsiveness */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    .brand-logo {
        max-width: 160px;
    }
}
