/*
    Alebrijes de Oaxaca Teotihuacán
    Login & Player Dashboard Styles
*/

/* ================================
   LOGIN PAGE STYLES
   ================================ */

.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #121212 100%);
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/03_TEOTIHUACAN_-_Fuerzas_Basicas.png') center center no-repeat;
    background-size: 350px;
    opacity: 0.08;
    pointer-events: none;
}

.login-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(242, 101, 34, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.login-card {
    background: #fff;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(242, 101, 34, 0.1);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #F36A21 0%, #FF8C42 50%, #F36A21 100%);
}

/* Login Tabs */
.login-tabs {
    display: flex;
    background: #f5f5f5;
    padding: 8px;
    gap: 8px;
    border-bottom: 1px solid #eee;
}

.login-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-tab svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.login-tab:hover {
    color: #F36A21;
    background: rgba(243, 106, 33, 0.08);
}

.login-tab.active {
    background: #fff;
    color: #F36A21;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-tab.active svg {
    stroke: #F36A21;
}

/* Login Panels */
.login-panel {
    display: none;
    padding: 40px 40px 35px;
    animation: fadeIn 0.3s ease;
}

.login-panel.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professor specific styles */
.prof-logo {
    width: 85px !important;
    height: 85px !important;
}

.login-btn-prof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%) !important;
}

.login-btn-prof:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%) !important;
}

.login-btn-prof svg {
    width: 18px;
    height: 18px;
}

.prof-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #999;
}

.prof-note svg {
    width: 14px;
    height: 14px;
    stroke: #999;
}

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

.login-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0a0a0a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.5;
}

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

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #F26522;
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #555;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #F26522;
}

.forgot-password {
    color: #F26522;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #d45a1c;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #F26522 0%, #FF8C42 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(242, 101, 34, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-error {
    background: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 10px;
}

.login-error.show {
    display: flex;
}

.login-error svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer p {
    font-size: 0.85rem;
    color: #666;
}

.login-footer a {
    color: #F26522;
    text-decoration: none;
    font-weight: 600;
}

/* ================================
   DASHBOARD STYLES
   ================================ */

.dashboard-section {
    padding: 100px 0 60px;
    min-height: 100vh;
    background: #f5f7fa;
}

.dashboard-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.player-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #F26522;
    overflow: hidden;
    flex-shrink: 0;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.player-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.player-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-details svg {
    width: 16px;
    height: 16px;
}

.logout-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: #F26522;
    border-color: #F26522;
}

.logout-btn svg {
    width: 18px;
    height: 18px;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.stat-icon.fisico {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.tecnico {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.tactico {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-icon.mental {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-icon.general {
    background: linear-gradient(135deg, #F26522 0%, #FF8C42 100%);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.metric-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.metric-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.metric-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-card-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.metric-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.metric-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-item-name {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.metric-item-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
}

.metric-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.metric-bar-fill.fisico {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.metric-bar-fill.tecnico {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.metric-bar-fill.tactico {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.metric-bar-fill.mental {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
}

/* Evaluations History */
.evaluations-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.evaluations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.evaluations-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
}

.evaluations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.evaluation-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    gap: 15px;
    transition: background 0.3s ease;
}

.evaluation-item:hover {
    background: #f0f0f0;
}

.evaluation-date {
    min-width: 80px;
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #F26522 0%, #FF8C42 100%);
    border-radius: 8px;
    color: #fff;
}

.evaluation-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.evaluation-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.evaluation-info {
    flex: 1;
}

.evaluation-type {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.evaluation-evaluator {
    font-size: 0.85rem;
    color: #666;
}

.evaluation-score {
    text-align: center;
}

.evaluation-score-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #F26522;
}

.evaluation-score-label {
    font-size: 0.75rem;
    color: #888;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.no-data svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-data h3 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 10px;
}

.no-data p {
    font-size: 0.95rem;
}

/* Loading State */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top-color: #F26522;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 25px;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .player-details {
        justify-content: center;
    }

    .logout-btn {
        margin-top: 15px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 80px 15px 30px;
    }

    .login-card {
        padding: 25px 20px;
    }

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

    .stats-overview {
        grid-template-columns: 1fr;
    }

    .evaluation-item {
        flex-direction: column;
        text-align: center;
    }

    .evaluation-date {
        min-width: auto;
        width: 100%;
    }
}