@import url("v2.css?v=2");
/* == DESIGN COMMUN == */
body {
    background: linear-gradient(to bottom, #fde4ec, #fde4ec);
    background: url('../images/body.png');
    background-size: cover;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 15px;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.login-wrapper, .register-wrapper {
    width: 85%;
    max-width: 420px;
    background: #ffffff78;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.logo {
    background: url('../images/logo_JADURTAL.png');
    background-size: 80px 80px;
    width: 80px;
    height: 85px;
    border-radius: 50%;
    margin: auto;
    text-align: center;
}

h1 {
    text-align: center;
    font-size: 20px;
    color: #444;
    margin-top: 15px;
}
p {
    text-align: center;
    font-size: 12px;
    color: #fcfcfc;
    margin-bottom: 20px;
}
label {
    font-size: 12px;
    /*color: #ccc;*/
    margin-bottom: 5px;
    display: block;
}
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="tel"], input[type="number"], input[type="check"] {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
}
select {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 55 L70 95 L110 55' stroke='%23999' stroke-width='15' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 30px; /* espace pour la flèche */
}
.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 13px;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-container .checkmark {
    position: absolute;
    left: 0;
    top: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: 0.2s;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #ed589c;
    border-color: #ed589c;
}

.checkbox-container .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.submit-btn {
    padding: 12px;
    background: linear-gradient(to right, #d91e63, #f06292);
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 5px;
    width: 100%;
    transition: background 0.2s;
}
.submit-btn:hover {
    background: linear-gradient(to right, #be185d, #d91e63);
}
.role-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}
.role-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    background: #f0f0f0;
    color: #444;
    transition: background 0.2s;
}
.role-btn.active {
    background: linear-gradient(135deg,#be185d,#f472b6);
    color: white;
    padding: 30px 0;
}
#role-title {
    font-weight: bold;
    color: #292151;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}
.alert {
    background: #fff3cd;
    color: #856404;
    border-radius: 7px;
    padding: 12px 18px;
    margin-bottom: 18px;
    text-align: center;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}
a {
    color: #be185d;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #d91e63;
    text-decoration: underline;
}
.toast {
    position: fixed;
    left: 50%;
    top: 35px;
    transform: translateX(-50%);
    background: #fff;
    color: #866404;
    padding: 14px 22px;
    border-radius: 8px;
    z-index: 9999;
    min-width: 200px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadein 0.5s, fadeout 0.5s 2.8s;
}
.toast button {
    background: none;
    border: none;
    color: #fff;
    margin-left: 16px;
    font-weight: bold;
    cursor: pointer;
}
@keyframes fadein {
    from { opacity: 0; top: 0; }
    to   { opacity: 1; top: 35px; }
}
@keyframes fadeout {
    from { opacity: 1; }
    to   { opacity: 0; top: 0; }
}
/* Responsive */
@media (max-width: 480px) {
    .login-wrapper, .register-wrapper {
        padding: 20px 10px;
    }
    .role-btn {
        font-size: 11px;
        padding: 10px;
    }
    #role-title {
        font-size: 18px;
    }
}
.header-icons { display: flex; align-items: center; gap: 10px; }
.header-quick-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:10px;
  background:#fff; border:1px solid #e6e7e8; box-shadow:0 1px 6px #00000010;
  color:#333; text-decoration:none;
}
.header-quick-btn:hover{ background:#f8f8f8; }

