/* auth.css - Centralized styles for authentication pages */

/* Common styles for all auth pages */

.front-page {
    background: var(--base);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Container styles */
.auth-container {
    width: 80%;
    border: 5px solid var(--primary-color);
    padding: 2rem;
    text-align: center;
    box-shadow: 20px 20px var(--primary-color);
}

.top-left-brand {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.25rem;
}

.login-container {
    max-width: 450px;
}

.signup-container, 
.landing-container {
    max-width: 450px;
    overflow: auto;
}

.landing-container {
    padding: 7rem 2rem;
    max-height: 500px;
}

/* Typography */
.auth-container h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #303C46;
}

.auth-container h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.landing-container h1 {
    font-size: 2rem;
}

.landing-container p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.landing-logo {
    margin-bottom: 3rem;
    min-height: 100px;
}


/* Form elements */
.form-control {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: var(--base);
    border: 1px solid #ddd;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    text-align: left;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

/* Error messages */
.errorlist {
    color: #dc3545;
    text-align: left;
    padding-left: 0;
    list-style: none;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.alert-danger {
    margin-top: 1.5rem;
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
    padding: 1rem;
    border-radius: 5px;
    text-align: left;
}

.alert-danger ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}


/* Links */
.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: black;
    text-decoration: none;
}

.forgot-password:hover {
    color: #303C46;
    text-decoration: none;

}

.signup-link, 
.login-link {
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    color:var(--primary-color);
    text-decoration: none;
}

/* Dividers */
.login-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.login-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e5e5;
}

.login-divider span {
    position: relative;
    background-color: white;
    padding: 0 1rem;
    color: #aaa;
    font-size: 0.9rem;
}

/* Layout helpers */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.name-row {
    display: flex;
    gap: 1rem;
}

.name-row .form-group {
    flex: 1;
} 

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

