.auth-wrapper {
    width: 100%;
    max-width: 440px;
    animation: m3AuthFade 0.4s ease;
}

@keyframes m3AuthFade {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card {
    background: #0a0a0a;
    border-radius: var(--m3-radius-xxl);
    padding: 48px 32px;
    border: 1px solid #1a1a1a;
    width: 100%;
    box-shadow: var(--m3-elevation-1);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.auth-header .subtitle {
    font-size: 14px;
    color: #B0B0B0;
    font-weight: 400;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.m3-text-field {
    position: relative;
    width: 100%;
    margin: 4px 0;
}

.m3-text-field input {
    width: 100%;
    padding: 16px 16px 8px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #2a2a2a;
    border-radius: 4px 4px 0 0;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #FFFFFF;
    transition: border-color 0.2s;
    outline: none;
}

.m3-text-field input:focus {
    border-bottom: 2px solid #BB86FC;
}

.m3-text-field input:focus + label,
.m3-text-field input:not(:placeholder-shown) + label {
    transform: translateY(-8px) scale(0.75);
    color: #BB86FC;
}

.m3-text-field label {
    position: absolute;
    left: 16px;
    bottom: 12px;
    font-size: 16px;
    color: #666666;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    transform-origin: left bottom;
}

.m3-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--m3-radius-full);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    text-decoration: none;
    min-height: 40px;
    overflow: hidden;
}

.m3-button.filled {
    background: #1a1a1a;
    color: #FFFFFF;
    border: 1px solid #2a2a2a;
}

.m3-button.filled:hover {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.m3-button.filled:active {
    transform: scale(0.96);
}

.m3-button.outlined {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid #2a2a2a;
}

.m3-button.outlined:hover {
    background: #1a1a1a;
    border-color: #3a3a3a;
}

.m3-button.text {
    background: transparent;
    color: #BB86FC;
    padding: 10px 12px;
    min-height: 36px;
}

.m3-button.text:hover {
    background: #1a1a1a;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    color: #B0B0B0;
}

.auth-links .m3-button.text {
    padding: 4px 8px;
    font-size: 14px;
}

.m3-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #666666;
    font-size: 12px;
    font-weight: 400;
    margin: 4px 0;
}

.m3-divider::before,
.m3-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #1a1a1a;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-buttons .m3-button.outlined {
    width: 100%;
}

.code-input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 16px 0 24px;
}

.code-input {
    width: 48px;
    height: 56px;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: var(--m3-radius-medium);
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.code-input:focus {
    outline: none;
    border-color: #BB86FC;
    border-width: 2px;
}

.code-dash {
    color: #333333;
    font-size: 24px;
    font-weight: 300;
    margin: 0 4px;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 20px;
        border-radius: var(--m3-radius-xl);
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-header {
        margin-bottom: 24px;
    }
    
    .auth-form {
        gap: 12px;
    }
    
    .m3-text-field input {
        font-size: 15px;
        padding: 14px 12px 8px;
    }
    
    .m3-text-field label {
        font-size: 15px;
        left: 12px;
        bottom: 10px;
    }
    
    .m3-button {
        font-size: 13px;
        padding: 8px 20px;
        min-height: 36px;
    }
    
    .code-input {
        width: 40px;
        height: 48px;
        font-size: 20px;
    }
    
    .code-input-group {
        gap: 6px;
    }
    
    .code-dash {
        font-size: 20px;
    }
}