/* ==========================================================================
   CSS Isolado para Autenticação - Barbearia Vikings
   Uso exclusivo do prefixo .vk-auth-* para evitar conflitos com a Landing Page
   ========================================================================== */

.vk-auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vk-auth-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    box-sizing: border-box;
}

.vk-auth-container {
    background-color: #1e1e24;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(218, 165, 32, 0.1);
    position: relative;
    overflow: hidden;
}

.vk-auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
}

.vk-auth-brand {
    text-align: center;
    margin-bottom: 30px;
}

.vk-auth-back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.vk-auth-back-link:hover {
    color: #daa520;
}

.vk-auth-logo {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #daa520; /* Dourado Viking */
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.vk-auth-subtitle {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 5px;
}

.vk-auth-section {
    animation: vk-auth-fade-in 0.4s ease forwards;
}

.vk-auth-section.hidden {
    display: none;
}

.vk-auth-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

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

.vk-auth-input-group {
    position: relative;
    width: 100%;
}

.vk-auth-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #888;
    transition: color 0.3s ease;
}

.vk-auth-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background-color: #2a2a30;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.vk-auth-input:focus {
    outline: none;
    border-color: #daa520;
    box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.2);
}

.vk-auth-input:focus + .vk-auth-icon,
.vk-auth-input:not(:placeholder-shown) + .vk-auth-icon {
    color: #daa520;
}

.vk-auth-password-strength {
    height: 4px;
    background-color: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-top: -5px;
    margin-bottom: 5px;
}

.vk-auth-strength-bar {
    height: 100%;
    width: 0%;
    background-color: #ff4444;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.vk-auth-btn {
    background: linear-gradient(135deg, #b8860b, #d4af37);
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.vk-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
}

.vk-auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.vk-auth-switch-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

.vk-auth-switch-btn {
    background: none;
    border: none;
    color: #daa520;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    transition: text-shadow 0.3s ease;
}

.vk-auth-switch-btn:hover {
    text-shadow: 0 0 8px rgba(218, 165, 32, 0.6);
    text-decoration: underline;
}

/* Toast */
.vk-auth-toast {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff4444;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
    transition: top 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.vk-auth-toast.success {
    background-color: #00C851;
}

.vk-auth-toast.show {
    top: 20px;
}

/* Loader */
.vk-auth-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: vk-auth-spin 1s linear infinite;
    position: absolute;
}

.vk-auth-loader.hidden {
    display: none;
}

@keyframes vk-auth-spin {
    to { transform: rotate(360deg); }
}

@keyframes vk-auth-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
