/* Landing and Auth Page Styles */

/* Import common styles */
@import url('0_css-collector.css');

/* ==========================================
   LAYOUT
   ========================================== */

.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.landing-container > img {
    width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.landing-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 360px;
}

/* ==========================================
   TAB NAVIGATION
   ========================================== */

.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-family: 'Lexend', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab:hover {
    color: #5820f1;
}

.auth-tab.active {
    color: #5820f1;
    border-bottom-color: #5820f1;
}

/* ==========================================
   FORMS
   ========================================== */

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* Form field styling - inherits from 4_form-styles.css */
.landing-form .form-field {
    margin-bottom: 16px;
    text-align: left;
}

.landing-form .form-field label {
    display: block;
    font-family: 'Lexend', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.landing-form .form-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.landing-form .form-field input:focus {
    outline: none;
    border-color: #5820f1;
    box-shadow: 0 0 0 3px rgba(88, 32, 241, 0.1);
}

/* Field error state */
.landing-form .form-field.error input {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Helper text */
.landing-form .form-field .helper-text {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
    min-height: 1.2em;
}

.landing-form .form-field .helper-text:empty {
    display: none;
}

.landing-form .form-field.error .helper-text {
    display: block;
    color: #dc3545;
}

/* Button */
.landing-form .button {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    font-size: 1rem;
}

.button-loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

/* ==========================================
   ALERTS
   ========================================== */

.auth-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    text-align: left;
    border-left: 4px solid;
}

.auth-alert:empty {
    display: none;
}

.auth-alert-error {
    background-color: #fef2f2;
    border-left-color: #dc3545;
    color: #991b1b;
}

.auth-alert-success {
    background-color: #f0fdf4;
    border-left-color: #22c55e;
    color: #166534;
}

.auth-alert-warning {
    background-color: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

/* ==========================================
   LINKS
   ========================================== */

.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.auth-links a {
    color: #5820f1;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ==========================================
   TITLE (for forgot/reset pages)
   ========================================== */

.landing-form h2 {
    margin: 0 0 24px 0;
    font-family: 'Lexend', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    color: #333;
}
