﻿/* =========================================
                   GENERAL
                ========================================= */

* {
    box-sizing: border-box;
}

body.login-barber {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================
                   CONTENEDOR
                ========================================= */

.login-container {
    width: 100%;
    max-width: 950px;
    padding: 20px;
}


/* =========================================
                   TARJETA
                ========================================= */

.login-card {
    display: flex;
    background: #1b1b1b;
    border: 1px solid #323232;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}


/* =========================================
                   LADO IZQUIERDO
                ========================================= */

.login-brand {
    width: 50%;
    min-height: 500px;
    background: linear-gradient( rgba(0,0,0,0.45), rgba(0,0,0,0.75) ), url('/img/barber-login.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}


    .login-brand img {
        width: 180px;
        max-width: 80%;
        margin-bottom: 25px;
    }


    .login-brand h1 {
        color: #ffcb74;
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 10px;
    }


    .login-brand p {
        color: #ddd;
        font-size: 15px;
        margin-bottom: 0;
    }


/* =========================================
                   FORMULARIO
                ========================================= */

.login-form {
    width: 50%;
    padding: 55px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


    .login-form h2 {
        color: #ffcb74;
        text-align: center;
        font-weight: 700;
        margin-bottom: 10px;
    }


.login-subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================
                   INPUTS
                ========================================= */

.login-input-group {
    margin-bottom: 20px;
}


    .login-input-group label {
        display: block;
        color: #ffcb74;
        margin-bottom: 7px;
        font-size: 14px;
    }


.login-input {
    width: 100%;
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
    color: white !important;
    border-radius: 10px !important;
    padding: 13px 15px !important;
    outline: none;
    transition: 0.2s;
}


    .login-input::placeholder {
        color: #888;
    }


    .login-input:focus {
        background: #333 !important;
        border-color: #ffcb74 !important;
        box-shadow: 0 0 6px rgba(255,203,116,0.35);
        outline: none;
    }


/* =========================================
                   MENSAJE ÉXITO
                ========================================= */

.login-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #8ee6a0;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}


/* =========================================
                   MENSAJE ERROR
                ========================================= */

.login-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff8c8c;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}


/* =========================================
                   BOTÓN
                ========================================= */

.btn-login {
    width: 100%;
    border: none;
    background: linear-gradient( 90deg, #df9d39, #ffcb74 );
    color: #1c1c1c;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}


    .btn-login:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }


    .btn-login:active {
        transform: translateY(0);
    }


/* =========================================
                   VOLVER AL LOGIN
                ========================================= */

.login-back {
    text-align: center;
    margin-top: 25px;
}


    .login-back a {
        color: #ffcb74;
        text-decoration: none;
        font-size: 14px;
        transition: 0.2s;
    }


        .login-back a:hover {
            color: #df9d39;
            text-decoration: underline;
        }


/* =========================================
                   RESPONSIVE
                ========================================= */

@@media (max-width: 768px) {

    .login-card {
        display: block;
    }


    .login-brand {
        width: 100%;
        min-height: 220px;
        padding: 25px;
    }


        .login-brand img {
            width: 120px;
            margin-bottom: 10px;
        }


        .login-brand h1 {
            font-size: 24px;
        }


        .login-brand p {
            font-size: 14px;
        }


    .login-form {
        width: 100%;
        padding: 35px 25px;
    }
}
