:root {
    --opm-yellow: #FFD700;
    --opm-red: #E63946;
    --opm-dark-red: #C1121F;
    --opm-blue: #457B9D;
    --opm-white: #F1FAEE;
    --opm-black: #1D3557;
    --opm-gray: #A8DADC;
    --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B6B 100%);
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: var(--opm-black);
}

/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.03) 10px, rgba(0, 0, 0, 0.03) 20px);
    z-index: 0;
    pointer-events: none;
}

.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Partículas animadas */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: float 15s linear infinite;
    animation-delay: calc(var(--i) * -2s);
}

.particles span:nth-child(1) { left: 10%; top: 20%; }
.particles span:nth-child(2) { left: 20%; top: 80%; }
.particles span:nth-child(3) { left: 60%; top: 10%; }
.particles span:nth-child(4) { left: 80%; top: 70%; }
.particles span:nth-child(5) { left: 30%; top: 50%; }
.particles span:nth-child(6) { left: 70%; top: 30%; }
.particles span:nth-child(7) { left: 50%; top: 90%; }
.particles span:nth-child(8) { left: 90%; top: 40%; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

/* Main Wrapper */
.main-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--opm-red), var(--opm-dark-red));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bangers', cursive;
    font-size: 36px;
    box-shadow: var(--shadow-strong), 0 0 20px rgba(230, 57, 70, 0.5);
    border: 4px solid var(--opm-yellow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.title-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.title-hero {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    color: var(--opm-red);
    text-shadow: 
        3px 3px 0 var(--opm-yellow),
        -1px -1px 0 var(--opm-black),
        1px -1px 0 var(--opm-black),
        -1px 1px 0 var(--opm-black),
        1px 1px 0 var(--opm-black);
    letter-spacing: 2px;
}

.title-sub {
    font-size: 1.2rem;
    color: var(--opm-black);
    font-weight: 700;
    text-transform: uppercase;
}

.menu {
    display: flex;
    gap: 15px;
}

.menu-link {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--opm-black);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.menu-link:hover,
.menu-link.active {
    background: var(--opm-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Container principal */
.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-login {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-strong), 0 0 60px rgba(255, 215, 0, 0.3);
    border: 3px solid var(--opm-yellow);
    animation: slideIn 0.6s ease-out;
}

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

/* Avatar Saitama */
.saitama-avatar {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--opm-yellow);
    box-shadow: var(--shadow-medium), 0 0 30px rgba(255, 215, 0, 0.6);
    background: white;
    padding: 10px;
}

.power-level {
    margin-top: 15px;
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    color: var(--opm-red);
    text-shadow: 2px 2px 0 var(--opm-yellow);
    letter-spacing: 2px;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: var(--opm-black);
    margin-bottom: 10px;
}

.login-subtitle {
    color: #666;
    font-size: 0.95rem;
}

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

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

.input-label {
    font-weight: 700;
    color: var(--opm-black);
    font-size: 0.95rem;
}

.input-field {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: var(--opm-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

/* Botão principal */
.btn-primary {
    padding: 15px;
    background: linear-gradient(135deg, var(--opm-red), var(--opm-dark-red));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #999;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #e0e0e0;
}

.divider span {
    padding: 0 15px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Register link */
.register-link {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

.link-highlight {
    color: var(--opm-red);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.link-highlight:hover {
    color: var(--opm-dark-red);
    text-decoration: underline;
}

/* Training Info */
.training-info {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #FFF9E6, #FFE8A3);
    border-radius: 15px;
    border: 2px solid var(--opm-yellow);
}

.info-title {
    font-weight: 900;
    color: var(--opm-black);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.training-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.training-list li {
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--opm-red);
    font-weight: 600;
    transition: all 0.3s ease;
}

.training-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

.training-list li.bonus {
    background: linear-gradient(135deg, #FFE8A3, #FFD700);
    border-left-color: var(--opm-dark-red);
    font-style: italic;
}

/* Footer */
.footer {
    padding: 20px;
    text-align: center;
    color: var(--opm-black);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Responsividade */
@media (max-width: 768px) {
    .title-hero {
        font-size: 2rem;
    }
    
    .title-sub {
        font-size: 1rem;
    }
    
    .card-login {
        padding: 25px;
    }
    
    .header {
        justify-content: center;
        text-align: center;
    }
    
    .logo-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .title-hero {
        font-size: 1.5rem;
    }
    
    .hero-badge {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .card-login {
        padding: 20px;
    }
}

/* === ESTILOS PÁGINA DE REGISTRO === */
.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.hero-motivation {
    margin-top: 30px;
    text-align: center;
}

.motivation-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-medium);
    border: 3px solid var(--opm-yellow);
}

.motivation-text {
    padding: 15px;
    background: linear-gradient(135deg, #FFE8A3, #FFD700);
    border-radius: 10px;
    border-left: 4px solid var(--opm-red);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === ESTILOS PÁGINA DE HISTÓRICO === */
.card-history {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 25px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    box-shadow: var(--shadow-strong), 0 0 60px rgba(255, 215, 0, 0.3);
    border: 3px solid var(--opm-yellow);
    animation: slideIn 0.6s ease-out;
}

.saitama-avatar-small {
    text-align: center;
    margin-bottom: 20px;
}

.avatar-img-small {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--opm-yellow);
    box-shadow: var(--shadow-medium);
    background: white;
    padding: 8px;
}

.history-header {
    text-align: center;
    margin-bottom: 30px;
}

.history-title {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: var(--opm-black);
    margin-bottom: 10px;
}

.history-subtitle {
    color: #666;
    font-size: 0.95rem;
}

/* Loading */
.loading-container {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--opm-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Training Cards */
.training-history {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.training-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.training-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--opm-yellow);
}

.training-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.training-number {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: var(--opm-red);
}

.training-date {
    color: #666;
    font-weight: 600;
}

.training-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px;
    background: linear-gradient(135deg, #FFF9E6, #FFE8A3);
    border-radius: 10px;
}

.stat-emoji {
    font-size: 2rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--opm-black);
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.achievement {
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, var(--opm-yellow), #FFA500);
    border-radius: 10px;
    text-align: center;
    font-weight: 900;
    color: var(--opm-black);
    font-size: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Stats Summary */
.stats-summary {
    margin-top: 30px;
}

.stats-title {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: var(--opm-black);
    text-align: center;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-box {
    background: linear-gradient(135deg, var(--opm-red), var(--opm-dark-red));
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-strong);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-number {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Empty State */
.empty-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon,
.error-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.empty-state h3,
.error-state h3 {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: var(--opm-black);
    margin-bottom: 10px;
}

.empty-state p,
.error-state p {
    color: #666;
    font-size: 1rem;
}

/* Responsividade adicional */
@media (max-width: 768px) {
    .card-history {
        padding: 25px;
    }
    
    .training-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .card-history {
        padding: 20px;
    }
    
    .training-stats {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .motivation-img {
        max-width: 100%;
    }
}
