/* ===== CETC Login & Register Page Styling ===== */
* { box-sizing: border-box; }
body, html {
    margin: 0; padding: 0; height: 100%;
    background: #f5f5f5 !important;
    font-family: 'Segoe UI', Arial, sans-serif !important;
    color: #333;
}

.cetc-login-wrapper {
    min-height: 100vh;
    background: #b86741 !important;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 40px 15px;
}

.user_card {
    height: auto; width: 380px; max-width: 100%;
    margin-top: 60px; margin-bottom: 20px;
    background: #ffffff; position: relative;
    display: flex; justify-content: center; flex-direction: column;
    padding: 20px 25px 30px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border-top: 6px solid #c0392b;
}

.brand_logo_container {
    position: absolute; height: 150px; width: 150px; top: -75px;
    border-radius: 50%; background: #ffffff; padding: 8px; text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    left: 50%; transform: translateX(-50%);
}
.brand_logo { height: 134px; width: 134px; border-radius: 50%; border: 2px solid #f39c12; object-fit: cover; }

.system_title {
    text-align: center; margin-top: 85px; margin-bottom: 5px;
    color: #333; font-size: 15px; font-weight: 600; line-height: 1.3;
}

.form_container { margin-top: 20px; }
.form-control { border-radius: 4px !important; }
.input_user, .input_pass { box-shadow: none !important; outline: 0px !important; border: 1px solid #ccc !important; }
.input_user:focus, .input_pass:focus { border: 1px solid #c0392b !important; box-shadow: none !important; outline: 0px !important; }

.login_btn {
    width: 100%; background: #c0392b !important; color: white !important;
    border: none !important; font-weight: 600; letter-spacing: 0.5px;
    padding: 8px; border-radius: 4px;
}
.login_btn:hover { background: #a5281a !important; color: white !important; }
.login_container { padding: 0 1rem; }

.links { font-size: 14px; }
.links a { color: #c0392b; font-weight: 600; text-decoration: none !important; }
.links a:hover { text-decoration: underline !important; }

.cetc-card { border-radius: 6px; border-top: 6px solid #c0392b !important; background: #ffffff; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }

.register_card.cetc-card { border-top-width: 4px !important; }
.register_card { max-width: 560px; width: 100%; margin: 0 auto; padding: 36px 36px 30px 36px; }
.register_header { text-align: center; margin-bottom: 30px; }
.register_header h1 { font-size: 17px; font-weight: 700; color: #222; margin: 0 0 6px 0; }
.register_header p { font-size: 11.5px; color: #777; margin: 0; }

.register_card .reg_alert { font-size: 13px; padding: 10px 14px; margin-bottom: 18px; }

.reg_label { font-size: 12px; font-weight: 700; color: #222; margin-bottom: 6px; display: block; }
.reg_row { display: flex; gap: 15px; margin-bottom: 17px; }
.reg_row > div { flex: 1; min-width: 0; }
.reg_group { margin-bottom: 17px; }

.register_card .form-control { height: 34px; padding: 6px 12px; font-size: 13.5px; }
.register_card .form-control::placeholder { color: #777; }

.reg_submit { height: 36px; padding: 0 8px; font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 8px; }

.back_link { text-align: center; margin-top: 22px; font-size: 11.5px; }
.back_link a { color: #c0392b; font-weight: 600; text-decoration: none; }
.back_link a:hover { text-decoration: underline; }

@media (max-width: 576px) {
    .register_card { padding: 28px 20px 25px 20px; }
    .reg_row { flex-direction: column; gap: 0; margin-bottom: 0; }
    .reg_row > div, .reg_group { margin-bottom: 17px; }
    .reg_row:last-of-type > div:last-child { margin-bottom: 0; }
}

@media (max-width: 440px) {
    .user_card { width: 100%; padding: 20px 18px 25px 18px; }
}