/* =========================================
   VARIABLES DE COLOR
   ========================================= */

:root {

    --primary-blue: #173B6C;
    --primary-red: #D91E36;

    --primary-red-hover: #B9182D;

    --white: #FFFFFF;

    --text-dark: #252525;
    --text-secondary: #666666;

    --border-color: #D6DCE5;

    --error-background: #FDECEA;
    --error-text: #B3261E;
}


/* =========================================
   RESET
   ========================================= */

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


html,
body {
    min-height: 100%;
}


body {
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================
   PÁGINA
   ========================================= */

.register-page {

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px 20px;

    background-color: var(--primary-blue);
}


/* =========================================
   CONTENEDOR GENERAL
   ========================================= */

.register-container {

    width: 100%;
    max-width: 450px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================
   LOGO
   ========================================= */

.brand {

    width: 100%;

    display: flex;
    justify-content: center;

    margin-bottom: 25px;
}


.brand-logo {

    display: block;

    width: 210px;
    max-width: 70%;

    height: auto;

    border-radius: 10px;
}


/* =========================================
   TARJETA
   ========================================= */

.register-card {

    width: 100%;

    background-color: var(--white);

    padding: 38px 40px;

    border-radius: 14px;

    border-top: 6px solid var(--primary-red);

    box-shadow:
            0 12px 35px rgba(0, 0, 0, 0.25);
}


.register-card h1 {

    text-align: center;

    color: var(--primary-blue);

    font-size: 26px;

    margin-bottom: 8px;
}


.register-subtitle {

    text-align: center;

    color: var(--text-secondary);

    font-size: 15px;

    line-height: 1.5;

    margin-bottom: 30px;
}


/* =========================================
   MENSAJE DE ERROR
   ========================================= */

.message {

    margin-bottom: 22px;

    padding: 12px 14px;

    border-radius: 7px;

    font-size: 14px;

    line-height: 1.4;
}


.error-message {

    display: flex;
    align-items: center;

    gap: 10px;

    background-color: var(--error-background);

    color: var(--error-text);

    border: 1px solid #F0B8BE;

    font-weight: 600;

    text-align: left;
}


.error-icon {

    width: 24px;
    height: 24px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background-color: var(--primary-red);

    color: var(--white);

    font-size: 15px;
    font-weight: 700;
}


/* =========================================
   FORMULARIO
   ========================================= */

.register-form {

    display: flex;
    flex-direction: column;

    gap: 18px;
}


.form-group {

    display: flex;
    flex-direction: column;

    gap: 8px;
}


.form-group label {

    color: var(--text-dark);

    font-size: 15px;
    font-weight: 600;
}


.form-group input {

    width: 100%;

    padding: 12px 14px;

    border: 1px solid var(--border-color);

    border-radius: 7px;

    background-color: var(--white);

    color: var(--text-dark);

    font-size: 16px;

    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}


.form-group input::placeholder {

    color: #999999;
}


.form-group input:focus {

    outline: none;

    border-color: var(--primary-blue);

    box-shadow:
            0 0 0 3px rgba(23, 59, 108, 0.12);
}


/* =========================================
   AYUDA CONTRASEÑA
   ========================================= */

.password-help {

    margin-top: 2px;

    color: var(--text-secondary);

    font-size: 12px;

    line-height: 1.4;
}


/* =========================================
   BOTÓN PRINCIPAL
   ========================================= */

.register-button {

    width: 100%;

    margin-top: 5px;

    padding: 13px;

    border: none;
    border-radius: 7px;

    background-color: var(--primary-red);

    color: var(--white);

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
            background-color 0.2s ease,
            transform 0.1s ease;
}


.register-button:hover {

    background-color: var(--primary-red-hover);
}


.register-button:active {

    transform: scale(0.99);
}


/* =========================================
   VOLVER AL LOGIN
   ========================================= */

.login-section {

    margin-top: 27px;

    padding-top: 22px;

    border-top: 1px solid #E5E5E5;

    text-align: center;
}


.login-section p {

    margin-bottom: 6px;

    color: var(--text-secondary);

    font-size: 14px;
}


.login-section a {

    color: var(--primary-blue);

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;
}


.login-section a:hover {

    color: var(--primary-red);

    text-decoration: underline;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 500px) {

    .register-page {

        padding: 25px 16px;
    }


    .brand-logo {

        width: 175px;
    }


    .register-card {

        padding: 30px 22px;
    }


    .register-card h1 {

        font-size: 23px;
    }


    .error-message {

        align-items: flex-start;
    }

}