/* Auth Pages Shared Styles */

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

.auth-header {
    margin-bottom: 0.5rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 500;
    color: var(--rz-base-900); /* stone-900 */
    margin: 0 0 0.5rem 0;
}

.auth-description {
    color: var(--rz-base-500); /* stone-500 */
    margin: 0;
    font-size: 1rem;
}

.auth-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    width: 100%;
}

::deep .auth-field .rz-form-field-content {
    width: 100%;
}

::deep .auth-field .rz-textbox,
::deep .auth-field input {
    width: 100%;
}

.auth-field-icon {
    color: var(--rz-base-500); /* stone-500 */
    font-size: 1.25rem;
}

.auth-field-with-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.auth-field-link-container {
    display: flex;
    justify-content: flex-end;
}

.auth-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rz-primary); /* teal-700 */
    text-decoration: none;
    padding: 0.25rem;
}

.auth-link:hover {
    color: var(--rz-primary-dark); /* teal-800 */
}

.auth-link-bold {
    font-weight: bold;
    color: var(--rz-primary); /* teal-700 */
    text-decoration: none;
}

.auth-link-bold:hover {
    text-decoration: underline;
}

.auth-button-container {
    padding-top: 2rem;
}

.auth-footer-link {
    text-align: center;
    font-size: 0.875rem;
    color: var(--rz-base-500); /* stone-500 */
    margin-top: 2rem;
}

.auth-error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background-color: var(--rz-danger-lighter); /* red-50 */
    border: 1px solid var(--rz-danger-light); /* red-200 */
    border-radius: 0.75rem;
    color: var(--rz-danger-darker); /* red-800 */
    font-size: 0.875rem;
}

.auth-error-message i {
    font-size: 1.25rem;
}

.auth-validation-message {
    color: var(--rz-danger); /* red-600 */
    font-size: 0.75rem;
    margin-top: 0.25rem;
    margin-left: 0.25rem;
}

/* Success Message */
.auth-success-container {
    text-align: center;
    padding: 2rem 0;
}

.auth-success-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.auth-success-icon-circle {
    width: 6rem;
    height: 6rem;
    background-color: var(--rz-success-lighter); /* green-100 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rz-success); /* green-600 */
    z-index: 10;
    position: relative;
}

.auth-success-icon-circle i {
    font-size: 3rem;
    font-weight: 600;
}

.auth-success-icon-ping {
    position: absolute;
    inset: 0;
    background-color: var(--rz-success-light); /* green-200 */
    border-radius: 50%;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.2;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.auth-success-title {
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--rz-base-900); /* stone-900 */
    margin: 0 0 0.75rem 0;
}

.auth-success-description {
    color: var(--rz-base-500); /* stone-500 */
    margin: 0 auto;
    max-width: 20rem;
}

.auth-email-display {
    font-weight: bold;
    color: var(--rz-base-800); /* stone-800 */
    margin-top: 0.5rem;
}

/* Info Box */
.auth-info-box {
    background-color: var(--rz-base-100);
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: var(--rz-base-600); /* stone-600 */
    text-align: center;
}

/* Back Link */
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--rz-base-500); /* stone-500 */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    margin-bottom: 1.5rem;
}

.auth-back-link:hover {
    color: var(--rz-base-800); /* stone-800 */
}

.auth-back-link i {
    font-size: 1.25rem;
}

/* Icon Container */
.auth-icon-container {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-icon-orange {
    background-color: var(--rz-warning-light); /* orange-100 */
    color: var(--rz-warning); /* orange-600 */
}

.auth-icon-teal {
    background-color: var(--rz-primary-lighter); /* teal-100 */
    color: var(--rz-primary); /* teal-700 */
    position: relative;
}

.auth-icon-red {
    background-color: var(--rz-danger-lighter); /* red-100 */
    color: var(--rz-danger); /* red-600 */
}

.auth-icon-gray {
    background-color: var(--rz-base-100); /* stone-100 */
    color: var(--rz-base-500); /* stone-500 */
}

.auth-icon-container i {
    font-size: 2rem;
}

/* OTP Input */
.auth-otp-container {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem 0;
}

.auth-otp-input {
    width: 3.5rem;
    height: 4rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: var(--rz-base-100); /* stone-100 */
    border: none;
    border-bottom: 2px solid var(--rz-base-300); /* stone-300 */
    border-radius: 0.5rem 0.5rem 0 0;
    outline: none;
    transition: all 0.2s;
}

.auth-otp-input:focus {
    border-bottom-color: var(--rz-primary); /* teal-600 */
    background-color: var(--rz-base-200); /* stone-200 */
}

/* Email Icon Badge */
.auth-email-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 2rem;
    height: 2rem;
    background-color: var(--rz-success); /* green-500 */
    border-radius: 50%;
    border: 4px solid var(--rz-base-background-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-email-badge i {
    font-size: 1rem;
    color: white;
}

/* Error Code Display */
.auth-error-code {
    background-color: var(--rz-danger-lighter); /* red-50 */
    color: var(--rz-danger-darker); /* red-800 */
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    border: 1px solid var(--rz-danger-light); /* red-100 */
    margin-top: 0.5rem;
}

/* Secondary Button */
.auth-secondary-button {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--rz-base-200); /* stone-200 */
    background-color: white;
    color: var(--rz-base-700); /* stone-700 */
    font-weight: bold;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.auth-secondary-button:hover {
    background-color: var(--rz-base-100); /* stone-50 */
    border-color: var(--rz-base-300); /* stone-300 */
}

/* Resend Link */
.auth-resend-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--rz-primary); /* teal-700 */
    font-weight: bold;
    text-decoration: none;
    font-size: 0.875rem;
    margin: 0 auto;
}

.auth-resend-link:hover {
    text-decoration: underline;
}

.auth-resend-link i {
    font-size: 0.875rem;
}

/* Centered Text */
.auth-centered-text {
    text-align: center;
    font-size: 0.875rem;
}

.auth-centered-text-gray {
    color: var(--rz-base-500); /* stone-500 */
}

/* Loading State */
.auth-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Grid for Name Fields */
.auth-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Layout Helpers */
.auth-form-centered {
    text-align: center;
    padding-top: 2rem;
}

.auth-icon-container-large {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
}

.auth-icon-container-xl {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1.5rem;
}

.auth-title-strong {
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-description-spaced {
    margin-top: 0.75rem;
}

.auth-back-link-centered {
    margin-top: 1rem;
    justify-content: center;
}

.auth-inline-link {
    text-decoration: none;
}

.auth-button-container-compact {
    padding-top: 1rem;
}

/* Informational Notice */
.auth-notice-box {
    background-color: var(--rz-primary-lighter); /* teal-50 */
    border: 1px solid var(--rz-primary-light); /* teal-200 */
    color: var(--rz-primary-darker); /* teal-900 */
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Code Input */
.auth-code-input {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.25rem;
}

.auth-code-input-otp {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
}

.auth-icon-size-2xl {
    font-size: 2.25rem;
}

.auth-icon-size-xl {
    font-size: 2.5rem;
}

.auth-icon-size-sm {
    font-size: 1rem;
}

.auth-content-centered {
    text-align: center;
}

.auth-section-vertical {
    margin: 2rem 0;
}

.auth-section-top {
    margin-top: 2rem;
}

.auth-section-top-sm {
    margin-top: 1rem;
}

.auth-section-top-md {
    margin-top: 1.5rem;
}

.auth-info-box-left {
    text-align: left;
}

.auth-caption {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--rz-base-500); /* stone-500 */
}

.auth-help-text {
    font-size: 0.75rem;
    color: var(--rz-base-400); /* stone-400 */
    margin-top: 0.5rem;
    margin-left: 0.25rem;
}

.auth-icon-container-relative {
    position: relative;
}

.auth-step-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--rz-warning); /* orange-600 */
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-step-badge-text {
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
}

