@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
     background: linear-gradient(#469c74, #e2e2e2b3), url('images/PTCBG.jpg');
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    overflow-y: auto;
}

/* HEADER */
header {
    padding: 10px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    background: linear-gradient(0deg, #038c2a 0%, #20ba2d 100%);
    align-items: center;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
header img {
    height: 75px;
}
header span {
    color: #fff;
    font-size: 20px;
    font-family: Cinzel, Arial, sans-serif;
    font-weight: bold;
}

/* MAIN CONTAINER */
.container {
    width: 520px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,.2);
    padding: 40px;
    margin-top: 120px;
}

/* NAME ROW */
.name-row {
    display: flex;
    gap: 12px;
    width: 100%;
}
.name-row .input-box {
    flex: 1;
}

.form-box {
    position: relative;
    width: 100%;
}

/* INPUTS */
.input-box {
    margin: 12px 0;
    position: relative;
}
.input-box input,
.input-box select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

/* BUTTON */
.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(0deg, #038c2a 0%, #20ba2d 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}

/* PASSWORD EYE ICON */
.password-box .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #444;
    font-size: 18px;
}

/* SWITCH TEXT */
.form-switch-text {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}
.form-switch-text .switch-form {
    color: #007bff;
    cursor: pointer;
    font-weight: 600;
}
.form-switch-text .switch-form:hover {
    text-decoration: underline;
}

/* OTP */
.otp-row {
    display: flex;
    gap: 8px;
}
.otp-row input { flex: 2; }
.otp-row button { flex: 1; font-size: 12px; }

/* EMAIL DOMAIN */
.email-wrapper { position: relative; }
.email-wrapper input { padding-right: 280px; }
.email-domain {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    font-size: 14px;
}

/* ========================= MODERN PRIVACY NOTICE MODAL ========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
    overflow-y: auto;
    padding: 40px 0;
}
.modal-content.custom-modal {
    background: #ffffff;
    width: 90%;
    max-width: 700px;
    margin: auto;
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 35px rgba(0,0,0,0.25);
    color: #000;
    animation: modalFade .25s ease-out;
}

@keyframes modalFade {
    from { transform: translateY(-15px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.modal-logo {
    display: block;
    width: 100px;
    margin: 0 auto 10px auto;
}
.modal-school-name {
    text-align: center;
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 600;
}
.modal-title {
    text-align: center;
    font-size: 26px;
    margin: 10px 0 20px 0;
    font-weight: 700;
}

.modal-content p {
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
    margin-bottom: 12px;
}
.modal-content ul {
    padding-left: 20px;
    margin-bottom: 18px;
    text-align: left;
}
.modal-content ul li {
    margin-bottom: 6px;
    font-size: 15px;
}

#agreePN {
    transform: scale(1.25);
    cursor: pointer;
    margin-right: 8px;
}

.continueBtn {
    margin-top: 18px;
    width: 100%;
    padding: 12px;
    background: #0047AB;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: .2s;
}
.continueBtn:hover:not(:disabled) {
    background: #003b90;
}
.continueBtn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* =======================
   BEAUTIFUL ALERT MESSAGE
========================== */
.alert-box {
    position: fixed;
    top: 100px;
    right: 25px;
    background: #ff2e2e;
    color: white;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 5px 18px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn .35s ease-out;
    opacity: 1;
    transition: opacity .4s ease;
    z-index: 99999;
}

.form-box h1 {
    text-align: center;
    width: 100%;
    display: block;
}

/* Custom Toast Notification */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1b5e20;
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(-10px);
    transition: all .4s ease;
    z-index: 99999;
}

.custom-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.custom-toast i {
    margin-right: 8px;
    font-size: 20px;
}

.email-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.email-row input {
    flex: 1;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.email-row .otp-btn {
    padding: 0 25px;
    height: 48px;
    border: none;
    border-radius: 6px;
    background: #1faa00;
    color: white;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.email-row .otp-btn:hover {
    background: #178700;
}
/* WARNING TOAST (same position as success toast) */
.warning-toast {
    position: fixed;
    top: 20px;              /* SAME AS SUCCESS TOAST */
    right: 20px;            /* SAME AS SUCCESS TOAST */
    background: #e53935;    /* Red background */
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(-10px);
    transition: all .4s ease;
    z-index: 99999;
}

.warning-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.warning-toast i {
    margin-right: 8px;
    font-size: 20px;
}

/* Fix modal overflow in mobile ONLY */
@media (max-width: 600px) {
    .modal-content.custom-modal {
        max-width: 95%;
        width: 95%;
        box-sizing: border-box;
        padding: 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

/* Fix long email breaking outside the modal box */
.modal-content.custom-modal p,
.modal-content.custom-modal strong {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

@keyframes slideIn {
    from { transform: translateX(40px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.alert-close {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    line-height: 14px;
}

/* RESPONSIVE */
@media screen and (max-width: 450px) {
    .container { width: 95%; margin-top: 100px; border-radius: 15px; }
    .input-box input, .input-box select, .btn { font-size: 14px; padding: 10px; }
}
.forgot-text {
    margin-top: 10px;
    text-align: center;
}

.forgot-text a {
    font-size: 14px;
    color: #0066cc;
    text-decoration: none;
}

.forgot-text a:hover {
    text-decoration: underline;
}
