/* public/css/auth.css - Glassmorphism iOS Style */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    /* Aurora Background já definido no body */
    position: relative;
}

/* Blobs de cor para realçar o vidro */
.auth-container::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.3) 0%, transparent 50%);
    animation: aurora1 15s ease-in-out infinite;
    z-index: -1;
}

.auth-container::after {
    content: '';
    position: fixed;
    bottom: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(88, 86, 214, 0.3) 0%, transparent 50%);
    animation: aurora2 18s ease-in-out infinite;
    z-index: -1;
}

@keyframes aurora1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30%, 20%) rotate(180deg); }
}

@keyframes aurora2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20%, -30%) rotate(-180deg); }
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 44px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: slideUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img {
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.auth-title {
    font-size: 26px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #444444;
    font-size: 15px;
    margin-bottom: 6px;
}

.auth-credits {
    font-size: 13px;
    color: #86868b;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1.5;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.auth-tab {
    padding: 14px;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    color: #86868b;
    font-weight: 600;
    font-size: 15px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-tab:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #1d1d1f;
}

.auth-tab.active {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.auth-card .form-group {
    margin-bottom: 16px;
    text-align: left;
}

.auth-card .form-group input,
.auth-card .form-control,
.auth-card .form-select {
    width: 100%;
    padding: 16px;
    margin-bottom: 0;
    border: 1px solid #d1d1d6;
    border-radius: 14px;
    background: #f2f2f7 !important;
    font-size: 16px;
    color: #000;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.auth-card .form-group input:focus,
.auth-card .form-control:focus,
.auth-card .form-select:focus {
    background: #ffffff !important;
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
}

.auth-card .form-group input::placeholder {
    color: #777777;
}

.auth-card .btn,
.btn-auth {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: #007AFF;
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35);
}

.auth-card .btn:hover,
.btn-auth:hover {
    background: #0062cc;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-footer a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: #0062cc;
}

/* Responsivo iOS Style */
@media (max-width: 768px) {
    .auth-card {
        padding: 36px 28px;
        border-radius: 24px;
    }

    .auth-header {
        margin-bottom: 26px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .auth-credits {
        font-size: 12px;
    }

    .auth-tabs {
        gap: 8px;
        margin-bottom: 24px;
    }

    .auth-tab {
        padding: 12px;
        font-size: 14px;
        border-radius: 12px;
    }

    .auth-card .form-group {
        margin-bottom: 14px;
    }

    .auth-card .form-control,
    .auth-card .form-select,
    .auth-card .form-group input {
        padding: 14px;
        font-size: 15px;
        border-radius: 12px;
    }

    .auth-card .btn {
        padding: 14px;
        font-size: 16px;
        border-radius: 12px;
    }
}

@media (max-width: 540px) {
    .auth-container {
        align-items: center;
        padding: 16px;
    }

    .auth-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .auth-title {
        font-size: 20px;
    }

    .auth-subtitle {
        font-size: 13px;
    }

    .auth-credits {
        font-size: 11px;
    }

    .auth-tabs {
        gap: 6px;
        margin-bottom: 20px;
    }

    .auth-tab {
        padding: 11px;
        font-size: 13px;
        border-radius: 10px;
    }

    .auth-card .form-group {
        margin-bottom: 12px;
    }

    .auth-card .form-control,
    .auth-card .form-select,
    .auth-card .form-group input {
        padding: 13px;
        font-size: 14px;
        border-radius: 10px;
    }

    .auth-card .btn {
        padding: 13px;
        font-size: 15px;
        border-radius: 10px;
    }
}

@media (max-width: 400px) {
    .auth-container {
        padding: 12px;
    }

    .auth-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .auth-title {
        font-size: 18px;
    }

    .auth-subtitle {
        font-size: 12px;
    }

    .auth-tab {
        padding: 10px;
        font-size: 12px;
    }

    .auth-card .form-control,
    .auth-card .form-select,
    .auth-card .form-group input {
        padding: 12px;
        font-size: 14px;
    }

    .auth-card .btn {
        padding: 12px;
        font-size: 14px;
    }
}