/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    background-color: white;
    display: flex;
    justify-content: center;

    min-height: 100vh;
}

/* Main container */
.login-container {
    display: flex;
    width: 100%;
    height: auto;
    max-height: 100vh;;
    background-color: white;
    overflow: hidden;
    position: relative;
    align-items: flex-end;
}

/* Left side with woman image */
.image-section {
    flex: 1;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.woman-image {
    display: block;
    height: auto;
    width: auto;
    max-height: 90vh; 
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
}

/* Right side with login form */
.login-section {
    /* We're matching the height of the image section */
    height: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    /* We want this section to take up a reasonable amount of space */
    min-width: 400px;
    max-width: 60vw;
    max-height: 70vh;
    align-self: center;
}

/* Logo styling */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3vh;
}

.tk-logo {
    /* max-width: 280px; */
    width: 30vw;
    min-width: 180px;
    height: auto;
}

/* Claims section */
.claims-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2vh;
}

.claims-image {
    max-width: 100%;
    width: 100%;
    height: auto;
}

/* Login form */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.login-form h2 {
    font-size: calc(18px + 0.6vw);
    margin-bottom: 4vh;
    text-align: center;
    font-weight: normal;
}

.gradient-text {
    background: linear-gradient(45deg, #1e5aa0, #b7842c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.input-group {
    width: 60%;
    margin-bottom: 4vh;
}

.login-input {
    width: 100%;
    padding: 12px;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: calc(14px + 0.3vw);
    outline: none;
    transition: border-color 0.3s;
}

.login-input:focus {
    border-color: #1e5aa0;
}

.login-button {
    background-color: #1e5aa0;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 60px;
    font-size: calc(14px + 0.4vw);
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #164685;
}

/* Utility class to hide elements */
.hidden-form {
    display: none !important; /* Use !important to ensure override if needed */
}

/* Responsive adjustments */
@media (max-aspect-ratio: 1/1) {
    .login-container {
        flex-direction: column;
    }
    
    .image-section {
        height: 40vh;
    }
    
    .login-section {
        height: 60vh;
        overflow-y: auto;
        padding: 3vh 5vw;
    }
    
    .tk-logo {
        max-width: 30vw;
        min-width: 150px;
    }
    
    .gradient-text {
        font-size: calc(16px + 1vw);
    }
    
    .login-button {
        padding: 10px 40px;
        font-size: calc(14px + 0.5vw);
    }
}

@media (max-width: 480px) {
    .image-section {
        height: 35vh;
    }
    
    .login-section {
        height: 65vh;
        padding: 3vh 4vw;
    }
    
    .tk-logo {
        max-width: 40vw;
        min-width: 120px;
    }
}

.admin-button {
     /* Size - you specified 15rem x 15rem */
     width: 4rem;
     height: 4rem;
     
     /* Positioning */
     position: absolute;
     bottom: 2rem;  /* Distance from bottom of the container */
     left: 2rem;    /* Distance from left of the container */
     
     /* Styling */
     background: #F9D8FE; /* Semi-transparent blue */
     color: white;
     border-radius: 12px; /* Rounded corners */
     
     /* Content alignment */
     display: flex;
     align-items: center;
     justify-content: center;
     
     /* Make sure it appears above the image */
     z-index: 10;
     
     /* Optional styling */
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
     padding: 1rem;
}

/* Modal styles */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #f1f1f5;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    min-width: 600px;
    max-width: 60vw;
    max-height: fit-content;
    overflow-y: auto;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 4vh;
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 2vh;
}

.user-table {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 10%;
}

.user-table table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th, .user-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: large;
}

.user-table th {
    background-color: #f1f1f5;
    font-weight: 500;
}

.user-table tr {
    background-color: white;
}

.user-table tr:hover {
    background-color: #f5f5f5;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

#modal-back {
    background-color: transparent;
    color: #666;
}

#modal-next {
    background-color: #1e5aa0;
    color: white;
}

#modal-next:hover {
    background-color: #164685;
}

body.modal-open {
    overflow: hidden;
}