/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Container */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #E0F7FA;
}

/* Header Navigation */
.header-nav {
    background-color: rgb(28, 41, 85); /* bg-primary-dark */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 50;
}

.nav-content {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .nav-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.nav-inner {
    display: flex;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.school-name {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .school-name {
        font-size: 1rem;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 6rem; /* pt-24 */
    padding-bottom: 6rem; /* pb-24 */
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
    z-index: 10;
    
}

.form-wrapper {
    width: 100%;
    max-width: 38rem; /* max-w-md */

}

/* Login Card */
.login-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    width:100%
}

/* Card Header */
.card-header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    color: #24346D; /* primary-blue */
}

/* Card Body */
.card-body {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    margin-bottom: 0.375rem; /* mb-1.5 */
    color: #24346D; /* primary-blue */
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding-left: 0.75rem; /* pl-3 */
    display: flex;
    align-items: center;
    pointer-events: none;
    color: #9ca3af; /* text-gray-400 */
}

.input-icon svg {
    width: 16px;
    height: 16px;
}

.form-input {
    width: 100%;
    padding-left: 2.5rem; /* pl-10 */
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem; /* text-sm */
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.25rem;
    background-color: white;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px #3b82f6; /* focus:ring-2 focus:ring-blue-500 */
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Form Select */
.form-select {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 2.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem; /* text-sm */
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.25rem;
    background-color: white;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
}

.form-select:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px #3b82f6; /* focus:ring-2 focus:ring-blue-500 */
}

.form-select:hover {
    border-color: #9ca3af;
}

/* Button Wrapper */
.button-wrapper {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.75rem; /* pt-3 */
}

.login-button {
    background-color: #2563eb; /* bg-blue-600 */
    color: white;
    font-size:1rem;
    font-weight: 600; /* font-semibold */
    padding: 0.5rem 1.5rem; /* py-2 px-6 */
    font-size: 0.875rem; /* text-sm */
    border-radius: 0.25rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-button:hover {
    background-color: #1d4ed8; /* hover:bg-blue-700 */
}

.login-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6;
}

.login-button svg {
    width: 16px;
    height: 16px;
}

/* Forgot Password */
.forgot-password-wrapper {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.25rem; /* pt-1 */
}

.forgot-password-link {
    background: none;
    border: none;
    color: #2563eb; /* text-blue-600 */
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: #1e40af; /* hover:text-blue-800 */
}

/* Footer */
.footer {
    background-color: rgb(28, 41, 85); /* bg-primary-dark */
    border-top: 1px solid #374151; /* border-gray-700 */
    width: 100%;
    position: fixed;
    bottom: 0;
    z-index: 50;
}

.footer-content {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .footer-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.footer-text {
    color: white;
    font-size: 0.875rem;
    text-align: center;
}

.footer-link {
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.footer-link:hover {
    text-decoration: underline;
}

