/* 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: #1c1917; /* stone-900 */
    margin: 0 0 0.5rem 0;
}

.auth-description {
    color: #78716c; /* 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: #78716c; /* 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: #0f766e; /* teal-700 */
    text-decoration: none;
    padding: 0.25rem;
}

.auth-link:hover {
    color: #115e59; /* teal-800 */
}

.auth-link-bold {
    font-weight: bold;
    color: #0f766e; /* 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: #78716c; /* 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: #fef2f2; /* red-50 */
    border: 1px solid #fecaca; /* red-200 */
    border-radius: 0.75rem;
    color: #991b1b; /* red-800 */
    font-size: 0.875rem;
}

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

.auth-validation-message {
    color: #dc2626; /* 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: #dcfce7; /* green-100 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a; /* 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: #bbf7d0; /* 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: #1c1917; /* stone-900 */
    margin: 0 0 0.75rem 0;
}

.auth-success-description {
    color: #78716c; /* stone-500 */
    margin: 0 auto;
    max-width: 20rem;
}

.auth-email-display {
    font-weight: bold;
    color: #292524; /* 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: #57534e; /* stone-600 */
    text-align: center;
}

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

.auth-back-link:hover {
    color: #292524; /* 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: #fed7aa; /* orange-100 */
    color: #ea580c; /* orange-600 */
}

.auth-icon-teal {
    background-color: #ccfbf1; /* teal-100 */
    color: #0f766e; /* teal-700 */
    position: relative;
}

.auth-icon-red {
    background-color: #fee2e2; /* red-100 */
    color: #dc2626; /* red-600 */
}

.auth-icon-gray {
    background-color: #f5f5f4; /* stone-100 */
    color: #78716c; /* 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: #f5f5f4; /* stone-100 */
    border: none;
    border-bottom: 2px solid #d6d3d1; /* stone-300 */
    border-radius: 0.5rem 0.5rem 0 0;
    outline: none;
    transition: all 0.2s;
}

.auth-otp-input:focus {
    border-bottom-color: #0f766e; /* teal-600 */
    background-color: #e7e5e4; /* stone-200 */
}

/* Email Icon Badge */
.auth-email-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 2rem;
    height: 2rem;
    background-color: #22c55e; /* green-500 */
    border-radius: 50%;
    border: 4px solid #fdfcfa;
    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: #fef2f2; /* red-50 */
    color: #991b1b; /* red-800 */
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    border: 1px solid #fecaca; /* red-100 */
    margin-top: 0.5rem;
}

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

.auth-secondary-button:hover {
    background-color: #f5f5f4; /* stone-50 */
    border-color: #d6d3d1; /* stone-300 */
}

/* Resend Link */
.auth-resend-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: #0f766e; /* 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: #78716c; /* 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;
}
