body {
    background-image: url('../images/backgrounds/index_background.webp');
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    -moz-user-select: none; 
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection in form fields */
.koe-input, input, textarea, button {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    pointer-events: auto;
}

.koe-container {
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    background: none !important;
    backdrop-filter: none !important;
}

.koe-modal {
    background: none !important;
    backdrop-filter: none !important;
}

.koe-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    width: 40vh;
    height: 46vh;
    margin: 0;
    background: none;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.koe-content {
    background-color: #f9f3e0;
    border: 0.3vh solid #b8860b;
    font-family: 'Almendra', serif;
    color: #000000;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1vh;
    position: relative;
    min-height: 0;
}

.koe-header {
    background: linear-gradient(to right, #b8860b, #e3c06c, #b8860b);
    border-bottom: 0.3vh solid #8b4513;
    padding: 1vh 1.5vh;
    color: #3a1e08;
    font-family: 'Almendra', serif;
    font-weight: bold;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.koe-header b {
    font-size: 2vh;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    font-family: 'Almendra', serif;
    letter-spacing: 0.1vh;
    margin: 0;
}

.koe-close {
    background-color: transparent;
    color: #3a1e08;
    opacity: 1;
    text-shadow: none;
    font-size: 2vh;
    position: absolute;
    right: 1.5vh;
    top: 1vh;
    border: none;
    cursor: pointer;
    padding: 0.5vh;
    width: 3vh;
    height: 3vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.koe-close:hover {
    color: #8b4513;
    transform: scale(1.1);
    background-color: rgba(139, 69, 19, 0.1);
}

.koe-body {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZjlmM2UwIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiNiZWIwOTUiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=');
    padding: 2vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Ensure all interactive elements in modal are clickable */
.koe-body * {
    pointer-events: auto;
}

.koe-body form {
    position: relative;
    z-index: 1;
}

/* Form styling */
.koe-form {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.koe-form-group {
    display: flex;
    flex-direction: column;
}

/* Form labels */
.form-label, label {
    color: #000000;
    font-weight: bold;
    font-family: 'Almendra', serif;
    font-size: 1.6vh;
    margin-bottom: 0.5vh;
    display: block;
}

/* Form controls */
.koe-input {
    background-color: rgba(255, 255, 255, 0.7);
    border: 0.2vh solid #8b4513;
    color: #3a3222;
    font-family: 'Almendra', serif;
    padding: 1vh 1.5vh;
    border-radius: 0.5vh;
    font-size: 1.6vh;
    height: 4.5vh;
    width: 100%;
    box-sizing: border-box;
}

.koe-input:focus {
    background-color: #fff;
    border-color: #b8860b;
    box-shadow: 0 0 0 0.3vh rgba(184, 134, 11, 0.25);
    outline: none;
}

.koe-input:hover {
    background-color: #fff;
    border-color: #b8860b;
}

/* Submit button */
.koe-button, button[type="submit"].koe-button {
    background: linear-gradient(to bottom, #b8860b, #8b4513);
    border: 0.2vh solid #6b3300;
    font-family: 'Almendra', serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1vh;
    padding: 1vh 2vh;
    transition: all 0.3s ease;
    font-size: 1.8vh;
    margin-top: 1vh;
    border-radius: 0.5vh;
    cursor: pointer;
    width: 100%;
    height: 4.5vh;
    flex-shrink: 0;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    gap: 0.5vh;
}

.koe-button:hover {
    background: linear-gradient(to bottom, #d4a624, #a05c1b);
    border-color: #8b4513;
    transform: scale(1.02);
    color: white;
    text-decoration: none;
}

.koe-button:focus {
    box-shadow: 0 0 0 0.3vh rgba(184, 134, 11, 0.5);
    outline: none;
}

.koe-button:active {
    transform: scale(0.98);
    background: linear-gradient(to bottom, #8b4513, #6b3300);
}

/* Links */
.modal-body a {
    color: #8b4513;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.4vh;
}

.modal-body a:hover {
    color: #b8860b;
    text-decoration: underline;
}

/* Headings */
h2 {
    color: #8b4513;
    font-family: 'Almendra', serif;
    font-size: 2.2vh;
    margin-bottom: 1vh;
    text-align: center;
}

h3 {
    color: #8b4513;
    font-family: 'Almendra', serif;
    font-size: 1.8vh;
    margin-bottom: 0.5vh;
}

/* Paragraphs */
p {
    font-family: 'Almendra', serif;
    font-size: 1.4vh;
    line-height: 1.5;
    margin-bottom: 1vh;
    color: #3a3222;
}

/* Ordered lists */
ol {
    font-family: 'Almendra', serif;
    font-size: 1.4vh;
    color: #3a3222;
    margin-bottom: 1vh;
    padding-left: 2vh;
}

ol li {
    margin-bottom: 0.5vh;
}

/* Error messages */
.koe-alert {
    border-radius: 0.5vh;
    padding: 1.5vh;
    margin-bottom: 1.5vh;
    font-family: 'Almendra', serif;
    font-size: 1.4vh;
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
    border: 0.2vh solid;
}

.koe-alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.koe-alert-danger span {
    color: #721c24;
    font-weight: bold;
}

/* Teacher account notice */
.teacher-account-notice {
    background-color: #fff3cd;
    border: 0.2vh solid #b8860b;
    color: #8b4513;
    padding: 1.5vh;
    margin-bottom: 1.5vh;
    border-radius: 0.5vh;
    font-family: 'Almendra', serif;
    font-size: 1.4vh;
    line-height: 1.5;
}

.teacher-account-notice h4 {
    color: #8b4513;
    font-family: 'Almendra', serif;
    font-size: 1.6vh;
    margin-bottom: 0.5vh;
    font-weight: bold;
}

.teacher-account-notice p {
    margin-bottom: 0.5vh;
    font-size: 1.4vh;
    color: #6b3300;
}

.teacher-account-notice strong {
    color: #8b4513;
    font-weight: bold;
}

/* Custom scrollbar */
.koe-body::-webkit-scrollbar {
    width: 0.5vh;
}

.koe-body::-webkit-scrollbar-track {
    background: rgba(184, 134, 11, 0.1);
    border-radius: 0.25vh;
}

.koe-body::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #b8860b, #8b4513);
    border-radius: 0.25vh;
}

.koe-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #d4a624, #a05c1b);
}

#reset-password-text {
    text-align: center;
    font-size: 1.6vh;
    color: #000000;
    font-family: 'Almendra', serif;
    font-weight: normal;
   
}


 