/* ===========================
   DOUCET - CSS Client
   Couleurs : Vert foncé #22372b, Terracotta #a8483d, Beige #f7f1ea
   =========================== */

body {
    background: linear-gradient(135deg, #f7f1ea 0%, #ede4d8 100%);
    background-attachment: fixed;
    min-height: 100%;
}

/* --- LOGIN PAGE --- */

body[data-controller*="Login"] {
    background: #22372b;
    background-image: url('../../img/doucet/bg_login.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body[data-controller*="Login"] #header,
body[data-controller*="Login"] #footer,
body[data-controller*="Login"] .main-nav,
body[data-controller*="Login"] .main-nav-phone-layer,
body[data-controller*="Login"] .mobile-close-parent {
    display: none !important;
}

body[data-controller*="Login"] #content {
    margin: 0;
    padding: 0;
    max-width: none;
}

/* Login wrapper - centrage vertical */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px 20px;
    box-sizing: border-box;
}

.login-logo {
    margin-bottom: 20px;
    padding-top: 0;
    text-align: center;
}

.login-logo .logo-login {
    width: 160px;
    height: auto;
}

.login-logo .logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #22372b;
}

/* Login card */
.login-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border-top: none;
}

.login-card .login-title {
    color: #22372b;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
    text-align: center;
}

.login-card .login-subtitle {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin: 0 0 24px 0;
    line-height: 1.4;
}

.login-card .form-group {
    margin-bottom: 16px;
}

.login-card .form-group label {
    display: block;
    color: #22372b;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.login-card .form-group .form-control,
.login-card .form-group .k-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 13px;
    border: 1.5px solid #d4cdc6;
    border-radius: 6px;
    background: #fff;
    color: #333;
    -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    margin: 0;
}

.login-card .form-group .form-control::placeholder,
.login-card .form-group .k-input::placeholder {
    color: #aaa;
}

.login-card .form-group .form-control:focus,
.login-card .form-group .k-input:focus {
    outline: none;
    border-color: #22372b;
    box-shadow: 0 0 0 3px rgba(34, 55, 43, 0.1);
}

/* Error & success messages */
.login-card .login-error {
    background-color: rgba(168, 72, 61, 0.08);
    border: 1px solid rgba(168, 72, 61, 0.3);
    color: #a8483d;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}

.login-card .login-success {
    background-color: rgba(34, 55, 43, 0.08);
    border: 1px solid rgba(34, 55, 43, 0.3);
    color: #22372b;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}

/* Login button */
.login-card .btn-login {
    display: block;
    width: 100%;
    height: 50px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    margin-top: 8px;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    background-color: #22372b;
    color: #f7f1ea;
    -webkit-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
    text-align: center;
    line-height: 50px;
    padding: 0;
}

.login-card .btn-login:hover,
.login-card .btn-login:active,
.login-card .btn-login:focus {
    background-color: #1a2b21;
    color: #f7f1ea;
}

/* Links */
.login-links {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0d8d0;
}

.login-links a {
    color: #22372b;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Info text */
.login-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0d8d0;
}

.login-info p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    margin: 0 0 8px 0;
}

.login-info a {
    color: #22372b;
    font-weight: 600;
}

.login-info strong {
    color: #22372b;
}

/* Footer */
.login-footer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-top: 24px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* --- Responsive login --- */
@media (max-height: 600px) {
    .login-wrapper {
        justify-content: flex-start;
        padding-top: 16px;
    }
    .login-logo {
        margin-bottom: 20px;
    }
    .login-logo .logo-login {
        width: 120px;
    }
    .login-card {
        padding: 24px 20px;
    }
}

@media (max-width: 380px) {
    .login-card {
        padding: 24px 16px;
    }
}

/* --- Kendo UI overrides --- */
.k-overflow-container .k-primary,
.k-primary,
.k-primary:hover,
.k-primary:active,
.k-primary:focus,
.k-primary:visited {
    color: #f7f1ea;
    border-color: #22372b !important;
    background-image: none;
    background-position: 50% 50%;
    background-color: #22372b !important;
    -webkit-box-shadow: none;
    box-shadow: none;
}

/* --- Header --- */
#header {
    background-color: #22372b;
}

#header .main-nav {
    background-color: #22372b;
}
