/* Beecoms Custom Login Theme - Clean White Design */

/* Sfondo bianco per tutta la pagina */
body {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Container principale del login */
.login-pf body {
    background: #ffffff;
}

/* Container wrapper - centra la card */
#kc-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Card del form di login - design pulito e centrato */
.card-pf {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

/* Form wrapper - limita larghezza */
#kc-form,
#kc-form-wrapper {
    max-width: 100%;
}

/* Logo personalizzato Beecoms */
#kc-header-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

#kc-header-wrapper::before {
    content: '';
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    background-image: url('../img/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Nascondi tutti i testi del header - il logo contiene già il testo */
#kc-header,
#kc-header-wrapper,
.kc-logo-text,
#kc-page-title,
#kc-header-wrapper h1,
#kc-header h1 {
    font-size: 0 !important;
    color: transparent !important;
}

/* Ma mantieni il contenitore visibile per il logo */
#kc-header-wrapper::before {
    font-size: initial;
}

/* Form fields styling */
.form-control {
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #2d5f7e;
    box-shadow: 0 0 0 2px rgba(45, 95, 126, 0.1);
    outline: none;
}

/* Labels */
.form-label {
    font-weight: 500;
    color: #555555;
    margin-bottom: 6px;
}

/* Pulsante di login principale - Blu Beecoms */
#kc-login {
    background-color: #2d5f7e;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
}

#kc-login:hover {
    background-color: #234a61;
}

#kc-login:active {
    background-color: #1a3647;
}

/* Link "Forgot password" e altri link - Blu Beecoms */
a {
    color: #2d5f7e;
    text-decoration: none;
}

a:hover {
    color: #234a61;
    text-decoration: underline;
}

/* Alert messages */
.alert {
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Checkbox "Remember me" */
.checkbox {
    margin: 15px 0;
}

.checkbox label {
    font-size: 14px;
    color: #666666;
    cursor: pointer;
}

/* Footer / Info text */
#kc-info {
    margin-top: 20px;
    text-align: center;
}

#kc-info-wrapper {
    color: #888888;
    font-size: 13px;
}

/* Responsive design */
@media (max-width: 768px) {
    .card-pf {
        padding: 30px 20px;
    }

    #kc-header-wrapper::before {
        width: 150px;
        height: 60px;
    }

    #kc-page-title {
        font-size: 20px;
    }
}

/* Social login buttons (se abilitati) */
#kc-social-providers a {
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 5px 0;
    display: block;
    text-align: center;
    transition: background-color 0.2s;
}

#kc-social-providers a:hover {
    background-color: #f5f5f5;
}

/* Link "Forgot Password" e opzioni form */
#kc-form-options {
    margin-top: 15px;
    text-align: right;
}

#kc-form-options span {
    display: block;
    margin-bottom: 10px;
}

#kc-form-options a,
#kc-form-options .pf-c-button {
    font-size: 14px;
    color: #2d5f7e !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    text-decoration: none;
    font-weight: 500;
}

#kc-form-options a:hover,
#kc-form-options .pf-c-button:hover {
    color: #234a61 !important;
    text-decoration: underline;
}

/* Registrazione e altri form */
#kc-registration {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Password visibility toggle */
.pf-c-button.pf-m-control {
    border: 1px solid #d0d0d0;
    background-color: #ffffff;
}

.pf-c-button.pf-m-control:hover {
    background-color: #f5f5f5;
}
