/* Authentication Styles */

/* Import shared styles */
@import '../shared/variables.css';
@import '../shared/components.css';
@import '../shared/utilities.css';
@import '../shared/base.css';

/* Base Container */
.auth-container {
    display: flex;
    min-height: 100vh;
    background-color: #f9f9f9;
}

.auth-content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-content {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.auth-image {
    flex: 1;
    background-color: #f2f2f2;
    background-image: url('/static/images/connectivity-map.svg');
    background-size: cover;
    background-position: center;
    display: none;
}

@media (min-width: 992px) {
    .auth-image {
        display: block;
    }
}

/* Typography */
.auth-header {
    margin-bottom: 1.25rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #161616;
}

.auth-subtitle {
    font-size: 1rem;
    color: #6b6b6b;
    margin-top: 0;
}

/* Email management refinements */
.email-address-list {
    max-width: 420px;
    margin: 0 auto 1rem;
}

.email-address-list .pure-control-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.email-address-list .pure-control-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Form Elements */
.auth-form {
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.25rem;
    max-width: 420px;
    margin: 1.25rem auto;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d2d2d;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: #3a7bfd;
    box-shadow: 0 0 0 3px rgba(58, 123, 253, 0.1);
    outline: none;
}

.input-group input::placeholder {
    color: #b1b1b1;
}

/* Field error box under each input */
.field-error {
    background-color: #fff5f5; /* light red */
    border: 1px solid #e94c4c;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 6px;
    color: #e94c4c;
    font-size: 0.85rem;
}

.field-error ul {
    margin: 0; /* remove bullet offset */
    padding-left: 0;
    list-style: none; /* no bullets */
}

.field-error li {
    margin: 2px 0;
    line-height: 1.3;
}

/* Highlight input border when an error is present */
.input-group.error input {
    border-color: #e94c4c;
    box-shadow: 0 0 0 3px rgba(233, 76, 76, 0.1);
}

/* Buttons */
.auth-actions {
    margin-top: 1.25rem;
    max-width: 420px;
    margin: 1.25rem auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

/* Button styles are now imported from shared/components.css */

/* Links */
.auth-links {
    margin-top: 1rem;
    text-align: center;
}

.link {
    color: #4a4a4a;
    text-decoration: none;
    transition: color 0.2s;
}

.link:hover {
    color: #2d3e50;
    text-decoration: underline;
}

.link-accent {
    color: #2d3e50;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.link-accent:hover {
    color: #395878;
    text-decoration: underline;
}

/* Separator */
.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem auto;
    max-width: 420px;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e1e1e1;
}

.auth-separator span {
    padding: 0 0.75rem;
    color: #6b6b6b;
    font-size: 0.9rem;
}

/* Footer */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: #6b6b6b;
}

/* Alert Messages */
.auth-alert {
    background-color: #fff5f5; /* subtle light red */
    border: 1px solid #e94c4c; /* vivid red border */
    border-radius: 6px;
    padding: 12px 16px;
    margin: 20px auto; /* consistent vertical spacing */
    color: #e94c4c;
    font-size: 0.9rem;
    max-width: 480px; /* keep alert aligned with form */
}

.auth-alert p {
    margin: 0;
    color: inherit;
    line-height: 1.4;
}

/* Style error lists inside alert */
.auth-alert ul {
    margin: 4px 0 0 1.2rem;
    padding: 0;
}

.auth-alert li {
    margin: 2px 0;
    color: inherit;
}

.auth-message {
    max-width: 420px;
    margin: 1rem auto;
}

/* Terms Agreement */
.terms-agreement {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #6b6b6b;
}
