/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('../images/caballos-hipodromo.jpg') no-repeat center center fixed;
    background-size: cover;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #c20000;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(194, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    /* Tamaño fijo de la card */
    margin: 0 auto;
}

.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.logo-purasangre {
    max-width: 200px;
    /* Tamaño controlado */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    /* centrado y con margen inferior */
}

.logo-wrapper {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 10px 15px;
    display: inline-block;
    max-width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 0 auto 10px auto;
    margin-bottom: 15px;
    border: 1px solid #c20000;
}

.subtitulo-login {
    text-align: center;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 15px;
    margin-bottom: 25px;
    letter-spacing: 1px;
    font-weight: 300;
    text-transform: uppercase;
    border-bottom: 1px solid #c20000;
    padding-bottom: 15px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
    font-size: 28px;
}

.login-box p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    color: #ffffff;
    /* Blanco puro */
    font-weight: 600;
    /* Más grueso */
    margin-bottom: 8px;
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #1a1a1a;
    width: 100%;
    color: white;
    font-weight: 500;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: #c20000;
    /* Rojo base del logo */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(194, 0, 0, 0.3);
}

.btn-primary:hover {
    background: #e00000;
    /* Rojo más brillante */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(224, 0, 0, 0.4);
}

.btn-primary:active {
    background: #cb0000;
    transform: translateY(0);
}


.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

/* Alerts */
.alert {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.alert-blocked {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Header */
.main-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    margin-bottom: 30px;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: #667eea;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    font-weight: 500;
    color: #555;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Footer */
.login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.login-footer p {
    margin: 5px 0;
    color: #ffffff;
    font-weight: 500;
}

.small {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
}