* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url("fondo.jpeg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    background: #1e1e1e;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.auth-header {
    background: #e7b204;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.auth-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.auth-header p {
    font-size: 14px;
    opacity: 0.9;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #333;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: #121212;
    color: #888;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.auth-tab.active {
    background: #1e1e1e;
    color: #e7b204;
    border-bottom: 3px solid #e7b204;
}

.auth-form {
    padding: 30px 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #333;
    border-radius: 10px;
    outline: none;
    background: #2a2a2a;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #e7b204;
    box-shadow: 0 0 0 2px rgba(231, 178, 4, 0.2);
}

.form-group input::placeholder {
    color: #666;
}

.auth-btn-container {
    width: 100%;
    margin-top: 10px;
}

.auth-btn-img {
    width: 100%;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: transparent;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.auth-btn-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.auth-btn-img:hover {
    transform: scale(1.02);
}

.auth-btn-img:hover img {
    filter: brightness(0.9);
}

.auth-btn-img:active {
    transform: scale(0.98);
}

.auth-btn-img:focus {
    outline: none;
}

.auth-btn-img:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-img:disabled img {
    filter: grayscale(50%);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #e7b204;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    cursor: pointer;
}

.auth-links a:hover {
    color: #d4a102;
    text-decoration: underline;
}

.error-message {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #ff4444;
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #4CAF50;
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e7b204;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e7b204;
}