/**
 * Estilos para o Shortcode [upgram_my_orders]
 * Login, Registro, Recuperação de Senha e Exibição de Pedidos
 * 
 * @package Upgram
 * @since 1.0.0
 */

.upgram-login-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 16px;
    font-family: var(--upgram-font-family, inherit);
    min-height: 60vh;
    background: transparent;
    position: relative;
}

.upgram-login-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0px 4px 21px 0px #00000014;
    width: 520px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.upgram-login-card::before {
    content: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

.upgram-login-icon {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.3),
        0 0 0 8px rgba(102, 126, 234, 0.1);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.upgram-login-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
}

.upgram-login-subtitle {
    font-size: 16px;
    color: #718096;
    margin: 0;
}

.upgram-login-form {
    margin-bottom: 24px;
}

.upgram-auth-card {
    max-width: 100%;
}

.upgram-auth-title {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 800;
    color: #202029;
    letter-spacing: -0.2px;
}

.upgram-auth-subtitle {
    margin: 0 0 14px 0;
    font-size: 14px;
    font-weight: 500;
    color: #515063;
}

.upgram-auth-form {
    margin: 0;
}

.upgram-auth-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 14px 0 14px 0;
}

.upgram-auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 16px 0;
}

.upgram-auth-link {
    all: unset;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--upgram-color-primary, #7C51F3);
    text-decoration: none;
}

.upgram-auth-link:hover {
    text-decoration: underline;
}

.upgram-auth-submit {
    width: 100%;
    border: none;
    border-radius: 8px;
    height: 63px;
    background: var(--upgram-color-primary, #7C51F3);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(124, 81, 243, 0.24);
}

.upgram-auth-submit:hover {
    filter: brightness(0.98);
}

.upgram-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #8b8ba7;
    font-size: 13px;
    font-weight: 600;
}

.upgram-auth-divider::before,
.upgram-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.upgram-auth-secondary {
    width: 100%;
    border: 1.5px solid rgba(124, 81, 243, 0.35);
    border-radius: 8px;
    height: 52px;
    background: #fff;
    color: var(--upgram-color-primary, #7C51F3);
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.upgram-auth-secondary:hover {
    background: rgba(124, 81, 243, 0.06);
}

.upgram-auth-message {
    padding: 14px 16px;
    background: rgba(124, 81, 243, 0.06);
    border: 1px solid rgba(124, 81, 243, 0.18);
    border-radius: 10px;
    color: #515063;
    font-size: 14px;
    margin: 12px 0 16px 0;
}

.upgram-auth-message p {
    margin: 0 0 8px 0;
}

.upgram-auth-message p:last-child {
    margin-bottom: 0;
}

.upgram-form-group {
    margin-bottom: 20px;
}

.upgram-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.upgram-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.upgram-form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.upgram-form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.upgram-form-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.upgram-form-options {
    margin-bottom: 24px;
}

.upgram-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
}

.upgram-checkbox input[type="checkbox"] {
    display: none;
}

.upgram-checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.upgram-checkbox input[type="checkbox"]:checked + .upgram-checkbox-mark {
    background: #667eea;
    border-color: #667eea;
}

.upgram-checkbox input[type="checkbox"]:checked + .upgram-checkbox-mark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.upgram-form-actions {
    margin-bottom: 20px;
}

.upgram-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.3),
        0 4px 12px rgba(102, 126, 234, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upgram-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(102, 126, 234, 0.4),
        0 8px 20px rgba(102, 126, 234, 0.3);
}

.upgram-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.upgram-login-btn:hover::before {
    left: 100%;
}

.upgram-btn-text {
    font-weight: 600;
}

.upgram-btn-icon {
    transition: transform 0.3s ease;
}

.upgram-login-btn:hover .upgram-btn-icon {
    transform: translateX(2px);
}

.upgram-form-footer {
    text-align: center;
}

.upgram-forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    background: none;
    border: none;
    cursor: pointer;
}

.upgram-forgot-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.upgram-forgot-link:hover {
    color: #764ba2;
    transform: translateY(-1px);
}

.upgram-forgot-link:hover::after {
    width: 100%;
}

.upgram-login-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.upgram-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.upgram-divider-text {
    background: white;
    padding: 0 16px;
    color: #718096;
    font-size: 14px;
    position: relative;
}

.upgram-register-section {
    text-align: center;
}

.upgram-register-text {
    color: #718096;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.upgram-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upgram-register-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.upgram-register-btn:hover .upgram-btn-icon {
    transform: translateX(2px);
}

/* Estilos para o modal de confirmação de e-mail */
.upgram-email-confirmation {
    text-align: center;
    padding: 20px 0;
}

.upgram-confirmation-icon {
    margin-bottom: 24px;
}

.upgram-confirmation-content {
    margin-bottom: 32px;
}

.upgram-confirmation-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 16px 0;
}

.upgram-confirmation-text {
    font-size: 16px;
    color: #4a5568;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.upgram-confirmation-instructions {
    font-size: 14px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

.upgram-confirmation-actions {
    margin-top: 24px;
}

.upgram-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Estilos para mensagens de erro */
.upgram-error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Estilos para mensagens de sucesso */
.upgram-success-message {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Estilos para mensagens de debug */
.upgram-debug-message {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: pre-wrap;
}

/* Estilos para o container do Turnstile */
.upgram-turnstile-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upgram-turnstile-container .cf-turnstile {
    transform: scale(0.9);
}

/* Estilos para o cabeçalho de boas-vindas */
.upgram-welcome-header {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.upgram-welcome-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.3);
}

.upgram-new-order-btn:hover,
.upgram-logout-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
}

/* Estilos para as categorias */
.upgram-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.upgram-category-modal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.upgram-view-all-btn:hover {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .upgram-login-container {
        padding: 16px;
    }
    
    .upgram-login-card {
        padding: 20px;
        width: 100%;
        max-width: 500px;
        border-radius: 12px;
    }
    
    .upgram-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .upgram-login-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .upgram-login-title {
        font-size: 24px;
    }

    .upgram-turnstile-container .cf-turnstile {
        transform: scale(0.8);
    }

    .upgram-welcome-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .upgram-welcome-text h2 {
        font-size: 18px !important;
    }

    .upgram-welcome-text p {
        font-size: 13px !important;
    }

    .upgram-header-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .upgram-new-order-btn,
    .upgram-logout-btn {
        justify-content: center;
        margin-right: 0 !important;
    }

    .upgram-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 12px !important;
    }

    .upgram-all-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 16px !important;
    }

    .upgram-category-card {
        padding: 16px !important;
    }

    .upgram-category-modal-card {
        padding: 16px !important;
    }
}

@media (max-width: 480px) {
    .upgram-login-container {
        padding: 12px;
    }
    
    .upgram-login-card {
        padding: 18px 16px;
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
    }
    
    .upgram-login-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 16px;
    }
    
    .upgram-login-title {
        font-size: 22px;
    }
    
    .upgram-login-subtitle {
        font-size: 14px;
    }
    
    .upgram-form-input {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .upgram-login-btn {
        padding: 16px 20px;
        font-size: 15px;
    }

    .upgram-welcome-header {
        padding: 12px !important;
    }

    .upgram-welcome-text h2 {
        font-size: 16px !important;
    }

    .upgram-new-order-btn,
    .upgram-logout-btn {
        padding: 8px 16px !important;
        font-size: 14px;
    }

    .upgram-categories-grid {
        grid-template-columns: 1fr !important;
    }

    .upgram-all-categories-grid {
        grid-template-columns: 1fr !important;
    }

    .upgram-section-header {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }
}

