﻿/* --- Shared Card Layout --- */
.auth-card {
    width: 400px;
    border-radius: 1rem;
    background-color: #ffffff;
    animation: fadeIn 0.35s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Shared Header --- */
.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.auth-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    padding: 10px;
    background: #f5f6f8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10), inset 0 1px 3px rgba(255, 255, 255, 0.4);
}

/* --- Form Layout Fixes --- */
.dxflFormLayout,
.dxflDataCell .dx-textbox {
    width: 100% !important;
}

.validation-error {
    font-size: 0.9rem;
    color: #d9534f;
}

/* --- Buttons (shared) --- */
.btn-primary-auth {
    height: 44px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
}

.btn-secondary-auth {
    height: 44px;
    font-weight: 600;
    font-size: 1rem;
    color: #444;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
}

.btn-secondary-auth:hover {
    background-color: #f2f2f2;
}

/* --- Password Toggle (shared) --- */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 2px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s ease-in-out;
}

.password-toggle:hover {
    opacity: 1;
}

.password-toggle i {
    font-size: 18px;
    color: #6c757d;
}

/* --- Success Card (shared) --- */
.auth-success {
    text-align: center;
    padding: 2rem 1rem;
}

.auth-success svg {
    margin-bottom: 1rem;
}
