/**
 * Auth Popup Styles
 *
 * Popup de login/cadastro com design glassmorphism
 */

/* Overlay */
.nocorte-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 51, 58, 0.80);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nocorte-auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.nocorte-auth-popup {
    position: relative;
    width: 100%;
    max-width: 460px;
    border-radius: 32px;
    background: rgba(156, 156, 156, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.nocorte-auth-overlay.active .nocorte-auth-popup {
    transform: scale(1);
}

/* Close Button */
.nocorte-auth-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    box-shadow: none !important;
}

.nocorte-auth-close:hover {
    opacity: 0.7;
    background: transparent !important;
    background-color: transparent !important;
    color: #fff !important;
}

/* Tabs */
.nocorte-auth-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nocorte-auth-tab {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 0 !important;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    flex: 1;
    box-shadow: none !important;
}

.nocorte-auth-tab:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    background: transparent !important;
    background-color: transparent !important;
}

.nocorte-auth-tab.active {
    color: #fff !important;
    background: transparent !important;
    background-color: transparent !important;
}

.nocorte-auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
}

/* Tab Content */
.nocorte-auth-tab-content {
    display: none;
}

.nocorte-auth-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form */
.nocorte-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nocorte-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nocorte-form-group label {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    font-family: "NewBlack Typeface", Sans-serif;
}

/* Input Wrapper */
.nocorte-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nocorte-input-icon {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nocorte-input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 15px !important;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.nocorte-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.nocorte-input-wrapper input:focus {
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: none !important;
}

/* Form Options */
.nocorte-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -8px;
}

.nocorte-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.nocorte-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #B5D0E3;
    background-color: transparent !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nocorte-forgot-password {
    color: #B5D0E3 !important;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nocorte-forgot-password:hover {
    color: #B5D0E3 !important;
    opacity: 0.8;
}

/* Submit Button */
.nocorte-auth-submit {
    width: 100%;
    padding: 16px !important;
    background: #000 !important;
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 600;
    font-family: "NewBlack Typeface", Sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.nocorte-auth-submit:hover {
    background: #B5D0E3 !important;
    background-color: #B5D0E3 !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 208, 227, 0.3) !important;
}

.nocorte-auth-submit:active {
    transform: translateY(0);
    background: #B5D0E3 !important;
    background-color: #B5D0E3 !important;
}

.nocorte-auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #000 !important;
    background-color: #000 !important;
    color: #fff !important;
}

/* Error Message */
.nocorte-auth-error {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 14px;
    margin-top: -8px;
}

/* Divider */
.nocorte-auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    position: relative;
}

.nocorte-auth-divider::before,
.nocorte-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.nocorte-auth-divider span {
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Google Sign-In Button */
.nocorte-google-signin-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Custom Google Button */
.nocorte-google-btn {
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    color: #1f2937;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.nocorte-google-btn:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.nocorte-google-btn svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.nocorte-auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nocorte-auth-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.nocorte-auth-footer a {
    color: #B5D0E3 !important;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nocorte-auth-footer a:hover {
    opacity: 0.8;
    color: #B5D0E3 !important;
}

/* Loading State */
.nocorte-auth-form.loading .nocorte-auth-submit {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.nocorte-auth-form.loading .nocorte-auth-submit::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Reset Password Screen */
.nocorte-reset-password-screen {
    display: none;
}

.nocorte-reset-password-screen.active {
    display: block;
}

.nocorte-reset-back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    border: none !important;
    color: #B5D0E3 !important;
    font-size: 14px;
    cursor: pointer;
    padding: 0 !important;
    margin-bottom: 24px;
    transition: opacity 0.2s ease;
}

.nocorte-reset-back-button:hover {
    opacity: 0.8;
    background: transparent !important;
}

.nocorte-reset-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    font-family: "NewBlack Typeface", Sans-serif;
    margin-bottom: 16px;
}

.nocorte-reset-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.nocorte-reset-success {
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #86efac;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 480px) {
    .nocorte-auth-popup {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .nocorte-auth-close {
        top: 16px;
        right: 16px;
    }

    .nocorte-form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Login Required Page Styles */
.nocorte-login-required {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 40px 20px;
}

.nocorte-login-required h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1D1D1F;
    margin: 0;
}

.nocorte-login-required p {
    font-size: 16px;
    color: #86868B;
    margin: 0;
    max-width: 500px;
}

.nocorte-login-required a {
    margin-top: 10px;
}

/* Button Styles */
.nocorte-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    font-family: "NewBlack Typeface", Sans-serif;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.nocorte-button-primary {
    background: #3F4BFF;
    color: #FFFFFF !important;
}

.nocorte-button-primary:hover {
    background: #4C6FE8;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 127, 255, 0.3);
}
