/*login&register.css*/

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Open+Sans:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, sans-serif;
}

body {
    background: linear-gradient(160deg, #0a1f5c 0%, #1a3a8f 50%, #0d2d6b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 60px solid rgba(212,175,55,0.08);
    top: -100px;
    right: -100px;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 50px solid rgba(255,255,255,0.05);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.container.card {
    width: 100%;
    max-width: 430px;
    margin: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    background: #fff;
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.title-header {
    background: linear-gradient(135deg, #0a1f5c 0%, #1a3a8f 100%);
    color: white;
    padding: 28px 20px 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.title-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #d4af37, #f5d76e, #d4af37);
}

.title-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f5d76e, #d4af37);
}

.logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 6px;
}

.logo-row img {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px;
    max-width: 60px;
    min-height: 60px;
    max-height: 60px;
    flex-shrink: 0;


    border-radius: 50%;
    border: 3px solid #d4af37;
    box-shadow: 0 0 12px rgba(212,175,55,0.5);
    background: white;
    object-fit: cover;
}

.logo-text { text-align: left; }

.title-header h1 {
    font-family: 'Merriweather', serif;
    font-size: 22px;
    font-weight: 700;
    color: #f5d76e;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

.title-header p {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    margin: 3px 0 0;
    letter-spacing: 0.3px;
}

.deped-tag {
    font-size: 10px;
    color: #d4af37;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 8px;
    font-weight: 600;
}

.container.card h2 {
    font-size: 17px;
    margin: 20px 0 12px;
    color: #0a1f5c;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    padding: 0 25px;
}

.container.card h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f5d76e);
    margin: 8px auto 0;
    border-radius: 2px;
}

.container.card form { padding: 0 25px; }

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    margin: 7px 0;
    border-radius: 8px;
    border: 1.5px solid #dde3f0;
    font-size: 14px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    background: #f8faff;
    color: #1a1a2e;
}

input:focus {
    border-color: #1a3a8f;
    box-shadow: 0 0 0 3px rgba(26,58,143,0.12);
    background: #fff;
}

button[name="login"],
button[name="register"],
button[name="send_reset"],
button[type="submit"] {
    width: 100%;
    padding: 13px;
    margin: 10px 0 5px;
    background: linear-gradient(135deg, #0a1f5c, #1a3a8f);
    color: #f5d76e;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(10,31,92,0.35);
    font-family: 'Open Sans', sans-serif;
}

button[name="login"]:hover,
button[name="register"]:hover,
button[name="send_reset"]:hover,
button[type="submit"]:hover {
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #0a1f5c;
    box-shadow: 0 6px 18px rgba(212,175,55,0.45);
    transform: translateY(-1px);
}

button:active { transform: translateY(0); }

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding: 0 25px 5px;
    gap: 10px;
}

.btn-link {
    flex: 1;
    text-align: center;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a6b2f, #27ae60);
    color: white;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
    box-shadow: 0 3px 8px rgba(27,107,47,0.3);
}

.btn-link:hover {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    transform: translateY(-1px);
}

.btn-back {
    display: inline-block;
    margin: 14px 0 20px;
    padding: 9px 18px;
    background: transparent;
    color: #1a3a8f;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    border: 1.5px solid #1a3a8f;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #0a1f5c;
    color: #f5d76e;
    border-color: #0a1f5c;
}

.success {
    background: linear-gradient(135deg, #1a6b2f, #27ae60);
    color: white;
    padding: 11px 15px;
    border-radius: 8px;
    margin: 0 25px 12px;
    font-size: 13px;
    font-weight: 600;
}

.error {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    padding: 11px 15px;
    border-radius: 8px;
    margin: 0 25px 12px;
    font-size: 13px;
    font-weight: 600;
}

.forgot-link {
    font-size: 13px;
    color: #1a3a8f;
    text-decoration: none;
    font-weight: 600;
}
.forgot-link:hover { color: #d4af37; text-decoration: underline; }

.password-wrapper {
    position: relative;
    margin: 7px 0;
}
.password-wrapper input {
    margin: 0;
    width: 100%;
    padding-right: 42px;
}
.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.toggle-pw:hover { opacity: 1; }

.pw-msg {
    font-size: 12px;
    margin: 3px 0 5px;
    text-align: left;
    padding-left: 2px;
    min-height: 16px;
    font-weight: 600;
}
.pw-msg.match   { color: #27ae60; }
.pw-msg.nomatch { color: #e74c3c; }

.forgot-form { padding: 0 25px; }

.forgot-desc {
    font-size: 13px;
    color: #555;
    background: #f0f4ff;
    border-left: 4px solid #1a3a8f;
    padding: 10px 12px;
    border-radius: 5px;
    margin-bottom: 14px;
    text-align: left;
    line-height: 1.5;
}

.email-input-wrapper {
    position: relative;
    margin-bottom: 12px;
}
.email-input-wrapper .email-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    pointer-events: none;
}
.email-input-wrapper input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1.5px solid #dde3f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #f8faff;
    margin: 0;
    transition: border 0.2s, box-shadow 0.2s;
}
.email-input-wrapper input:focus {
    border-color: #1a3a8f;
    box-shadow: 0 0 0 3px rgba(26,58,143,0.12);
    background: #fff;
}

.btn-send-reset {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #0a1f5c, #1a3a8f);
    color: #f5d76e;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(10,31,92,0.35);
    letter-spacing: 0.5px;
    margin-top: 5px;
}
.btn-send-reset:hover {
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #0a1f5c;
    box-shadow: 0 6px 18px rgba(212,175,55,0.45);
    transform: translateY(-1px);
}
.btn-send-reset:active { transform: translateY(0); }
.btn-icon { font-size: 16px; }

@media (max-width: 480px) {
    body { padding: 10px; align-items: flex-start; padding-top: 15px; }
    .container.card { border-radius: 12px; }
    .title-header h1 { font-size: 18px; }
    .title-header p  { font-size: 10px; }
    .logo-row img    { width: 50px; height: 50px; }
    .login-links     { flex-direction: column; gap: 8px; }
    .btn-link        { width: 100%; }
    .container.card h2 { font-size: 15px; }
}

/* Signature Display */
.signature-display {
    margin-top: 8px;
    padding-top: 5px;
    border-top: 1px dashed #ddd;
}
.signature-img {
    max-width: 100px;
    max-height: 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f9f9f9;
    padding: 3px;
}
.status-select {
    padding: 6px 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}