:root {
    --primary: #582d1f;
    --accent: #C5A47E;
    --surface: rgba(255, 255, 255, 0.92);
}


.auth-panel {
    margin: 235px auto;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    width: min(100%, 480px);
    padding: 4rem 3rem;
    box-shadow: 
        0 32px 64px -16px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 48%, rgb(197 153 126 / 8%) 50%, transparent 52%);
    animation: grain 8s infinite linear;
    pointer-events: none;
}

.brand-header {
    text-align: center;
    margin-bottom: 3rem;
}

.brand-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    background: var(--primary);
    -webkit-mask: url('data:image/svg+xml,...') center/contain;
    mask: url('data:image/svg+xml,...') center/contain;
}

h1 {
    font-size: 1.75rem;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.auth-description {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.input-field {
    margin: 1.5rem 0;
    position: relative;
}

.input-field input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(197, 164, 126, 0.15);
}

.input-field label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-field input:focus + label,
.input-field input:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.75rem;
    background: linear-gradient(to bottom, var(--surface), #fff);
    padding: 0 0.25rem;
    color: var(--accent);
}

.auth-actions {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.auth-button {
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: 
        transform 0.2s ease,
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px -4px rgba(26, 54, 93, 0.2);
}

.auth-divider {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    color: #D1D5DB;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E5E7EB;
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.biometric-auth {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.biometric-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #E5E7EB;
    cursor: pointer;
    transition: all 0.3s ease;
    display: grid;
    place-items: center;
}

.biometric-button:hover {
    background: white;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.05);
}

@keyframes grain {
    0% { transform: translate(0, 0) }
    10% { transform: translate(-5%, -10%) }
    20% { transform: translate(-15%, 5%) }
    30% { transform: translate(7%, -25%) }
    40% { transform: translate(-5%, 25%) }
    50% { transform: translate(-15%, 10%) }
    60% { transform: translate(15%, 0%) }
    70% { transform: translate(0%, 15%) }
    80% { transform: translate(3%, -35%) }
    90% { transform: translate(-10%, 10%) }
    100% { transform: translate(0, 0) }
}