*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: 'DM Sans', sans-serif;
}
 body {
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;

    background-image:
        linear-gradient(rgba(60, 30, 20, 0.35), rgba(60, 30, 20, 0.35)),
        url("../../images/colegio.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container{
    width:450px;
    max-width:100%;
    background:#f6f1ef;
    border-radius:22px;
    padding:28px;
}

h1{
    text-align:center;
    font-size:33px;
    font-weight:bold;
    color:#5a2a1e;
    line-height:1.2;
}

.subtitle{
    text-align:center;
    font-size:13px;
    color:#5d4b45;
    margin-top:8px;
    line-height:1.4;
}

.notice-box{
    background:#efe2dc;
    border-radius:12px;
    padding:15px;
    margin-top:20px;
    text-align:center;
    font-size:13px;
    color:#6d5147;
}

.tabs{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:18px;
    flex-wrap:wrap;
}

.tab{
    background:#eadbd4;
    border:none;
    padding:10px 14px;
    border-radius:10px;
    font-size:12px;
    font-weight:bold;
    color:#5a2a1e;
}

.tab.active{
    background:linear-gradient(to right,
    #7d3426,
    #9b6544);
    color:#ffffff;
}
form{
    margin-top:22px;
}
#roleSelect{
    cursor: pointer;   
}

label{
    display:block;
    margin-bottom:8px;
    font-size:13px;
    font-weight:bold;
    color:#5a2a1e;
}

input[type="password"]::-ms-reveal {
    display: none;
}

.password-container{
    position:relative;
}

.password-container input{
    width:100%;
    height:48px;
    padding-right:45px;
}

#togglePassword{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    display:none;
    color:#b1adadf3;
   
}

select,
input{
    width:100%;
    height:48px;
    border:1px solid #d7c2b9;
    border-radius:12px;
    padding:0 15px;
    margin-bottom:18px;
    outline:none;
    background:white;
}
input:focus,
select:focus{
    border-color:#7b1c2e;
    box-shadow:0 0 0 3px rgba(123,28,46,.12);
}
   
.login-btn{
    width:100%;
    height:50px;
    margin-top:5px;
    border:none;
    border-radius:12px;
    background:linear-gradient(to right,
    #7d3426,
    #9b6544);
    color:white;
    font-size:16px;
    font-weight:bold;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.login-btn:hover{
    color: white;
    background: linear-gradient(to right, #5a1220, #7b1c2e);
}
.login-btn:focus-visible{
    outline: 2px solid #c8902a;
    outline-offset: 2px;
}

.login-btn:disabled{
    opacity: .7;
    cursor: not-allowed;
}
.footer{
    margin-top:25px;
    text-align:center;
    font-size:11px;
    color:#8f7a73;
    line-height:1.5;
}
.error-msg {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);

    background: #e74c3c;
    color: #fff;

    padding: 14px 18px;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 500;

    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 9999;

    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition: all 0.3s ease;
}
.error-msg.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.error-msg.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    pointer-events: none;
}

#toast {
    position: fixed;
    top: 20px;
    
    left: auto;
    right: auto;
    background: #e74c3c;
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;

    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 9999;

    opacity: 0;
    transform: translateY(-50px);
    transition: 0.3s ease;
    pointer-events: none;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}