/* Admin Style CSS - Estilos para páginas administrativas */

/* Estilos para páginas de login (admin.php e index.php) */
body.login-page {
    background: url('https://images.pexels.com/photos/540518/pexels-photo-540518.jpeg') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

body.login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 1;
}

body.login-page.with-background {
    /* Gradiente como fallback principal */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* Imagem como overlay se disponível */
    background-image: url('https://images.pexels.com/photos/761543/pexels-photo-761543.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

body.login-page.with-background::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-header {
    margin-bottom: 32px;
}

.login-logo {
    width: 80px;
    height: auto;
    margin-bottom: 24px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

.input-with-icon .form-input {
    padding-left: 48px;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    background: var(--surface-color);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: rgba(224, 30, 81, 0.3);
    box-shadow: 0 0 0 2px rgba(224, 30, 81, 0.05);
}

.input-with-icon .form-input:focus + .input-icon,
.input-with-icon:focus-within .input-icon {
    color: var(--primary-color);
}

.password-input-container {
    position: relative;
}

.password-input-container.input-with-icon .form-input {
    padding-left: 48px;
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--text-primary);
}

.btn-login {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

.login-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    color: var(--text-light);
    font-size: 12px;
    margin: 0;
}

/* Animação de loading */
.ph-spin {
    animation: spin 1s linear infinite;
}

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

/* Estilos para área dos ingressos (index.php) */
.tickets-area {
    background: var(--background-color);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.tickets-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tickets-header {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.tickets-logo {
    height: 60px;
    margin-bottom: 20px;
}

.tickets-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.btn-back {
    margin-top: 10px;
}

.purchase-info {
    background: linear-gradient(135deg, #e01e51, #ff4081);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
}

.purchase-info h2 {
    margin-bottom: 10px;
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Responsividade */
@media (max-width: 480px) {
    .login-card {
        padding: 24px;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
    
    .tickets-grid {
        grid-template-columns: 1fr;
    }
}