/* Login Section Styles */
.auth-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #cc5830);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../recursos/bg-jugadores.png');
    background-repeat: no-repeat;
    background-size: cover;
    animation: float 20s ease-in-out infinite;
}

.auth-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.auth-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 600px;
    width: 100%;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
    overflow: hidden;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
    }
    66% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 25px 25px 0 0;
}

.tab-button {
    flex: 1;
    padding: 1.2rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    position: relative;
}

.tab-button.active {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #ff6b35;
    transition: width 0.3s ease;
}

.tab-button.active::after {
    width: 100%;
}

/* Tab Content */
.tab-content {
    padding: 3rem;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #666;
    font-size: 0.95rem;
    font-weight: 400;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    position: relative;
    flex: 1;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 0.9rem 0.9rem 2.8rem;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #999;
}

.form-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    margin-top: 12px;
}

.form-group input:focus + .form-icon {
    color: #ff6b35;
}

.auth-button {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-button:hover::before {
    left: 100%;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.3);
}

.auth-button:active {
    transform: translateY(0);
}

/* Basketball decoration */
.basketball-decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ff6b35;
    opacity: 0.1;
    animation: bounce 3s ease-in-out infinite;
}

.basketball-decoration:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.basketball-decoration:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.basketball-decoration:nth-child(3) {
    bottom: 15%;
    left: 20%;
    animation-delay: 2s;
}

.basketball-decoration:nth-child(4) {
    bottom: 25%;
    right: 10%;
    animation-delay: 0.5s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* Error states */
.form-group.error input {
    border-color: #ff4757;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.error-message {
    color: #ff4757;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Success message */
.success-message {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: none;
    text-align: center;
    font-weight: 500;
}

.success-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-section {
        padding: 80px 15px 30px;
    }

    .auth-container {
        margin: 0 10px;
    }

    .tab-content {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group input {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
        font-size: 0.9rem;
    }

    .form-icon {
        left: 0.8rem;
        font-size: 0.9rem;
    }

    .auth-button {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .basketball-decoration {
        width: 40px;
        height: 40px;
    }

    .tab-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tab-content {
        padding: 1.5rem 1rem;
    }

    .auth-title {
        font-size: 1.3rem;
    }

    .auth-subtitle {
        font-size: 0.85rem;
    }

    .form-group input {
        padding: 0.7rem 0.7rem 0.7rem 2.2rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }
}

.message-container {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

.error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.success-message {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-content i {
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}