﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap');

/* ================= VARIABLES ================= */
:root {
    --color-primary: #ff6b00;
    --color-primary-light: #ff8c3a;
    --color-error: #ff4d4f;
    --color-error-bg: rgba(255, 77, 79, 0.12);
    --color-text-light: #ffffff;
    --color-text-muted: #ffaa5e;
}

/* ================= BASE ================= */
body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(120deg, rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('../fondologin.jpg');
    background-size: cover;
    background-position: center;
    font-family: 'Nunito', sans-serif;
}

/* ================= LOGO ================= */
.logo-container {
    text-align: center;
    margin-bottom: 32px;
    max-width: 420px;
    width: 100%;
}

.logo {
    max-width: 180px;
}

/* ================= CARD ================= */
.login-card {
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
    border-radius: 28px;
    background: linear-gradient( 135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08) );
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    text-align: center;
}

/* ================= TITLES ================= */
.app-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.access-tag {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* ================= FORM ================= */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 6px;
    display: block;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 40px;
}

/* ================= INPUT ================= */
.form-input {
    width: 90%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.95);
    font-size: 15px;
    color: #0a1e3c;
    transition: 0.2s ease;
}

    .form-input:focus {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 4px rgba(255,107,0,0.15);
    }

/* ================= ERROR ================= */
.login-error {
    background: var(--color-error-bg);
    border-left: 4px solid var(--color-error);
    color: #ffb3b3;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.field-validation-error {
    color: #ff9b9b;
    font-size: 13px;
    margin-top: 4px;
}

/* ================= BUTTON ================= */
.btn-login {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(255,107,0,0.35);
    }
.btn-neutral {
    width: 100%;
    background: transparent;
    padding: 14px 28px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-neutral:hover {
        background: rgba(255,255,255,0.15);
    }

/* ================= FOOTER LINK ================= */
.register-link {
    margin-top: 18px;
    font-size: 13px;
    color: var(--color-text-light);
    text-align: center;
}

    .register-link a {
        color: var(--color-primary-light);
        text-decoration: none;
        font-weight: 600;
    }

        .register-link a:hover {
            text-decoration: underline;
        }