/* ===== BODY ===== */
body{
    background-color:#FFFDF1;
    margin:0;
    font-family:Inter, sans-serif;

    display:flex;
    flex-direction:column;
    align-items:center;
}

/* ===== HEADER ===== */
header{
    background-color:#589BFF;
    width:100%;
    height:120px;
    margin-top: 10px;
    display:flex;
    justify-content:center;
    align-items:center;
}

h4{
    font-size:42px;
    color:white;
    margin:0;
}

/* ===== LOGIN CARD ===== */
.login{
    background:white;
    width:400px;
    padding:35px 30px 45px;
    margin-top:40px;

    border-radius:14px;
    box-shadow:0 10px 35px rgba(66,164,255,0.18);
    text-align:center;
}

.login h1{
    margin-bottom:30px;
}

.input-group{
    position:relative;
    width:95%;
    margin:20px 0;
}

.input-group input{
    width:100%;
    border:2px solid #222;
    border-radius:10px;
    background:#ffffff;
    padding:16px 12px;
    font-size:15px;
    outline:none;
    transition:.25s;
}

.input-group label{
    position:absolute;
    left:12px;
    top:16px;
    transition:.25s;
    pointer-events:none;
    background:white;
    padding:0 6px;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label{
    transform:translateY(-24px);
    font-size:12px;
    color:#3f82f6;
}

.input-group input:focus{
    border-color:#3f82f6;
    background:white;
}

.login-btn,
.reg-btn{
    width:100%;
    padding:15px;
    border:none;
    border-radius:12px;
    background:#589BFF;
    color:white;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    margin-top:20px;

    box-shadow:0 6px 18px rgba(88,155,255,.35);
    transition:.25s;
}

.login-btn:hover,
.reg-btn:hover{
    background:#3f82f6;
    transform:translateY(-2px);
}

.divider{
    display:flex;
    align-items:center;
    margin:25px 0;
}

.divider::before,
.divider::after{
    content:"";
    flex:1;
    border-bottom:2px solid #d3d3d3;
}

.divider span{
    padding:0 15px;
    font-weight:600;
    letter-spacing:3px;
}

/* ===== GOOGLE BUTTON ===== */
.google-signup{
    width:100%;
    padding:14px;
    border-radius:12px;
    border:none;
    background:white;
    font-weight:600;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;

    box-shadow:0 6px 18px rgba(0,0,0,.08);
    cursor:pointer;
    transition:.25s;
}

.google-signup:hover{
    transform:translateY(-2px);
    background:#f5f9ff;
}

.google-logo{
    height:24px;
}

/* REGISTER */  
.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    justify-content:center;
    align-items:center;
    font-family:'Inter', sans-serif;
    z-index: 999;
}

.modal-content{
    background:linear-gradient(#7fb0da,#74a6d3);
    padding:40px;
    width:500px;
    border-radius:25px;
    border:2px solid #0b6cb8;
    box-shadow:0 10px 25px rgba(0,0,0,.3);
}

.modal-content h2{
    text-align:center;
    color:white;
    margin-bottom:20px;
}

.modal-content label{
    color:white;
    font-weight:600;
    font-size:14px;
}

.modal-content input,
.modal-content select{
    width:100%;
    padding:10px;
    margin:6px 0 15px;
    border:none;
    border-radius:4px;
    background:#e6e6e6;
}

.row{
    display:flex;
    gap:15px;
}

.birthdate{
    flex:2;
}

.birth-select{
    display:flex;
    gap:8px;
}

.birth-select select{
    flex:1;
}

.sex{
    flex:1;
}

.terms{
    display:flex;
    align-items:center;
    gap:8px;
    color:white;
    font-size:13px;
    margin-bottom:15px;
}

.signup-btn{
    width:100%;
    padding:14px;
    border:none;
    border-radius:30px;
    background:#5aa0d6;
    color:white;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(0,0,0,.2);
}

.signup-btn:hover{
    background:#4a8fc3;
}

.back-login{
    text-align:center;
    color:white;
    margin-top:12px;
    font-size:14px;
    cursor:pointer;
}
        .admin-notice {
            background: #e8eaf6;
            color: #1a237e;
            padding: 8px 15px;
            border-radius: 8px;
            font-size: 12px;
            text-align: center;
            margin: 10px 20px;
        }
        
        /* Role indicator colors */
        .role-badge-demo {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            margin-right: 5px;
        }
        .super-admin { background: #dc2626; }
        .admin { background: #f59e0b; }
        .pharmacist { background: #10b981; }
        .customer { background: #3b82f6; }
        
        /* Additional styles for new fields */
        .row-3cols {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }
        .row-3cols .input-group {
            flex: 1;
        }
        .city-group, .postal-group {
            margin-bottom: 15px;
        }
        .city-group label, .postal-group label {
            font-size: 12px;
            color: #666;
            margin-bottom: 5px;
            display: block;
        }
        .city-group input, .postal-group input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 8px;
        }