* {
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: url("../Img/background.png") center/cover no-repeat;
    display: flex;
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    color: #222;
}

.container {
    width: 1200px;
    max-width: 95%;
    display: flex;
    align-items: stretch;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border-radius: 20px;
}

.input-group label::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.left-panel {
    width: 35%;
    background: url("../Img/background.png") center/cover no-repeat;
}

.overlay {
    background: rgba(120, 0, 0, 0.85);
    height: 100%;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
}
.logo {
    width: 250px;
    max-width: 100%;
    height: auto;
    margin-bottom: -50px;
}
.logo-text {
    color: white;
    margin-bottom: 30px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.15;
    text-align: center;
    max-width: 280px;
}

.right-panel {
    width: 65%;
    padding: 40px 60px;
    background: #e6e6e6;
}

.right-panel h1 {
    text-align: center;
    margin-bottom: 6px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.right-panel p {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.right-panel p a {
    text-decoration: none;
    transition: 0.3s;
}

.right-panel p a:hover {
    text-decoration: underline;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 12px;
    width: 100%;
}

.input-group {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.row-flex {
    display: flex;
    gap: 10px;
    width: 100%;
}

.input-group label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #222;
}

input,
select {
    border: 1px solid #ccc !important;
    height: 42px;
    outline: none;
    color: #222;
    background: #fff;
}

input:focus,
select:focus {
    border-color: #7a0b0b !important;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 12px;
}

.input-group input::placeholder {
    font-size: 12px;
    color: #777;
}

#username,
#fullname,
#studentid {
    text-transform: uppercase;
}

#studentid-warning {
    display: none;
    color: red;
    font-size: 10px;
    margin-top: 5px;
}

.password-help {
    margin-top: 0px;
    margin-bottom: 10px;
    font-size: 12px;
}

#toggleRequirements {
    cursor: pointer;
    color: #666;
    text-decoration: underline;
}

.requirements-box {
    display: none;
    margin-top: 10px;
    padding: 15px;
    background: #e8f0f4;
    border-radius: 6px;
    position: relative;
}

.requirements-box.show {
    display: block;
}

.requirements-box ul {
    margin: 0;
    padding-left: 18px;
}

.requirements-box li {
    margin: 6px 0;
    color: #c0392b;
}

.requirements-box li.valid {
    color: green;
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 8px;
    cursor: pointer;
    font-size: 16px;
}

#password-error {
    color: red;
    display: none;
    font-size: 10px;
    margin: 6px 0;
}

.show-password {
    margin-top: 0px;
    font-size: 12px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-divider {
    display: flex;
    align-items: center;
    margin: 25px 0 10px;
    font-weight: 700;
    color: #222;
}

.status-divider::before,
.status-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #999;
}

.status-divider span {
    padding: 0 10px;
    font-size: 16px;
}
.status-divider span::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.status-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    font-size: 12px;
    font-weight: 600;
    align-items: center;
    gap: 10px;
    min-height: 75px;
    cursor: pointer;
    position: relative;
}

.show-password input {
    cursor: pointer;
}

.register-btn {
    background: #7a0b0b;
    color: white;
    border: none;
    padding: 12px 50px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.register-btn:hover {
    background: #a12020;
}

.register-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.center {
    text-align: center;
}

/* MOBILE */
/* mobile responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: auto;
        max-width: 90%;
    }

    .left-panel,
    .right-panel {
        width: 100%;
    }

    .logo {
        width: 150px;
    }

    .logo-text {
        font-size: 14px;
        padding: 0 20px;
        line-height: 1.4;
    }

    .left-panel {
        height: 200px;
        border-radius: 20px 20px 0 0;
    }

    .right-panel {
        padding: 30px 20px;
        border-radius: 0 0 20px 20px;
    }

    .input-grid {
        grid-template-columns: 1fr;
        row-gap: 15px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .right-panel h1 {
        font-size: 26px;
    }
}