/* ============================================
   COMPONENTES REUTILIZABLES
   ============================================ */

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #0f1428;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    border: 1px solid rgba(0, 255, 157, 0.2);
    position: relative;
    animation: slideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #00ff9d;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: #00ff9d;
    margin-bottom: 0.5rem;
}

.modal-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-tab {
    flex: 1;
    padding: 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,255,157,0.2);
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px;
}

.modal-tab.active {
    background: rgba(0,255,157,0.2);
    color: #00ff9d;
    border-color: #00ff9d;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* FORMULARIOS */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,255,157,0.3);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff9d;
    box-shadow: 0 0 0 2px rgba(0,255,157,0.1);
}

/* MENSAJES */
.success-message {
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid #00ff9d;
    color: #00ff9d;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

.error-message {
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid #ff4500;
    color: #ff6347;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #00ff9d 0%, #00cc7a 100%);
    color: #0a0e27;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.3);
}

.btn-secondary {
    border: 2px solid #00ff9d;
    color: #00ff9d;
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(0, 255, 157, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #00ff9d 0%, #00cc7a 100%);
    color: #0a0e27;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-github {
    width: 100%;
    padding: 0.9rem;
    background: #24292e;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.btn-github:hover {
    background: #2f363d;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(36, 41, 46, 0.5);
}

.btn-github i {
    font-size: 1.3rem;
}

.btn-login {
    background: linear-gradient(135deg, #00ff9d 0%, #00cc7a 100%);
    color: #0a0e27;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.3);
}
