/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* General form styling */
body {
    background-image: url('https://images.prismic.io/ipone/dcb60fc7-97fb-47fa-a35f-e3fbb6b922cb_1420x1080%20(002).png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.auth-app {
    max-width: 28rem;
    width: 100%;
    margin: 0 auto;
}

.auth-card {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    width: 100%;
}

.auth-card-body {
    padding: 1.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    max-width: 200px;
    margin: 0 auto 1.5rem;
    display: block; /* Visible in browser-auth theme */
}

.auth-title {
    letter-spacing: -0.025em;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.auth-subtitle {
    color: white;
}

/* Hide subtitles in browser-auth - they don't appear in login or forgot password views */
.auth-card:has(form[name="loginForm"]) .auth-subtitle,
.auth-card:has(form[name="forgotPasswordForm"]) .auth-subtitle,
.auth-card:has(form[name="resetPasswordForm"]) .auth-subtitle {
    display: none;
}

.auth-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
}

.auth-form-group {
    margin-bottom: 1rem;
}

.auth-input {
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    border-radius: 0.375rem;
    margin-top: 0.75rem;
    color: white;
    width: 100%;
    padding: 0 1rem;
}

.auth-label {
    line-height: 1;
    opacity: 1;
    font-weight: 500;
    color: white;
    font-size: 0.875rem;
    display: block;
}

.auth-button {
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    background-color: white;
    color: black;
    white-space: nowrap;
    transition: background-color 0.2s;
    border: none;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    order: 5; /* Button comes before forgot password link in browser-auth */
}

/* In browser-auth, forgot password appears after the button */
.auth-form-actions {
    order: 10; /* Move to end after button */
    margin-top: 1rem;
    text-align: center;
}

.auth-form-footer {
    margin-top: 1rem;
    text-align: center;
}

.auth-link {
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-decoration: none;
    color: white;
}

.auth-link:hover,
.auth-forgot-link:hover {
    text-decoration: underline !important;
    color: white !important;
}

.auth-text {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider-line {
    border-color: rgba(255, 255, 255, 0.5);
}

.auth-divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 0 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.auth-loading {
    display: flex;
    justify-content: center;
}

.auth-spinner {
    color: white;
}

.auth-alert {
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
}

.auth-alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.auth-alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Form control focus styling */
.auth-input:focus {
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    outline: none;
}

/* Placeholder styling */
.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}
