/* Authentication Screen Styles */
.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed from 'center' to 'flex-start' so content starts from top with spacing */
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    box-sizing: border-box;
    z-index: 1;
    overflow: auto; /* Allow scrolling if needed */
    padding-top: 100px; /* Add spacing from top */
    padding-bottom: 100px; /* Add spacing from bottom */
}

.auth-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    z-index: 2;
    color: var(--text-primary);
}

.auth-box h2 {
    color: var(--text-primary);
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.auth-form {
    text-align: left;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.auth-form input:focus {
    outline: none;
    border-color: #3a7bd5;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.2);
    background-color: var(--bg-secondary);
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(58, 123, 213, 0.3);
}

.auth-form button:active {
    transform: translateY(0);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.auth-link a {
    color: #3a7bd5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: #00d2ff;
    text-decoration: underline;
}

.auth-form .errorlist {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ffb3b3;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    list-style: none;
    font-size: 14px;
}

.auth-form .form-error {
    color: #ffb3b3;
    font-size: 14px;
    margin-top: 5px;
}

/* Messages */
.messages {
    margin-bottom: 20px;
}

.messages .alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.messages .alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #a7f0c8;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.messages .alert-error {
    background: rgba(220, 53, 69, 0.2);
    color: #ffb3b3;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

.messages .alert-info {
    background: rgba(23, 162, 184, 0.2);
    color: #a3daff;
    border: 1px solid rgba(23, 162, 184, 0.4);
}

/* Logout Page Specific */
.logout-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed from 'center' to 'flex-start' so content starts from top with spacing */
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    box-sizing: border-box;
    z-index: 1;
    overflow: auto; /* Allow scrolling if needed */
    padding-top: 100px; /* Add spacing from top */
    padding-bottom: 100px; /* Add spacing from bottom */
}

.logout-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    z-index: 2;
    color: var(--text-primary);
}

.logout-box h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
}

.logout-box p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}