/* auth.css - Centralized styles for authentication pages */

/* Mountain background for all auth pages */
body {
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg id='visual' viewBox='0 0 960 540' width='960' height='540' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'%3E%3Cpath d='M0 421L107 415L213 423L320 430L427 443L533 423L640 418L747 445L853 425L960 432L960 541L853 541L747 541L640 541L533 541L427 541L320 541L213 541L107 541L0 541Z' fill='%232c5e53'%3E%3C/path%3E%3Cpath d='M0 441L107 454L213 460L320 465L427 451L533 445L640 443L747 447L853 450L960 442L960 541L853 541L747 541L640 541L533 541L427 541L320 541L213 541L107 541L0 541Z' fill='%23adbfbb'%3E%3C/path%3E%3Cpath d='M0 468L107 477L213 480L320 465L427 482L533 479L640 482L747 474L853 474L960 477L960 541L853 541L747 541L640 541L533 541L427 541L320 541L213 541L107 541L0 541Z' fill='%23ffffff'%3E%3C/path%3E%3Cpath d='M0 499L107 491L213 482L320 486L427 490L533 492L640 501L747 491L853 487L960 491L960 541L853 541L747 541L640 541L533 541L427 541L320 541L213 541L107 541L0 541Z' fill='%23adbfbb'%3E%3C/path%3E%3Cpath d='M0 509L107 505L213 516L320 508L427 514L533 512L640 506L747 514L853 519L960 511L960 541L853 541L747 541L640 541L533 541L427 541L320 541L213 541L107 541L0 541Z' fill='%232c5e53'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: -1;
}

/* Common styles for all auth pages */

.front-page {
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 4rem 1rem;
}

/* Container styles */
.auth-container {
    width: 90%;
    max-width: 500px;
    border: 5px solid var(--primary-color);
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
    background-color: var(--white);
}

.top-left-brand {
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 1.25rem;
}

.login-container {
    max-width: 500px;
}

.signup-container, 
.landing-container {
    overflow: auto;
}

.landing-container {
    padding: 6rem 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;
}

.header-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    min-height: 20%;
}


/* Form elements */
.form-control {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    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;
    font-size: var(--fs-xs);
}

.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:var(--primary-color);
    text-decoration: none;
}

a:hover {
    color:black;
    text-decoration: none;
}

/* Layout helpers */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.auth-container form > button.btn {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}