/* MuMono Account API - Custom Styles */

body {
    /* Fondo con imagen de MuOnline y overlay oscuro */
    background:
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
        url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    background: #1a1a1a;
    border: 1px solid #3d0000;
    border-radius: 15px;
    animation: fadeIn 0.5s ease-in;
    color: #e0e0e0;
}

.card-header {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%) !important;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
    border-bottom: 2px solid #DC143C;
}

.card-header h2 {
    margin: 0;
    font-weight: bold;
    font-size: 1.75rem;
}

.server-name {
    margin: 0;
    font-weight: bold;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.register-title {
    margin: 0.5rem 0 0 0;
    font-weight: 500;
    font-size: 1.25rem;
    opacity: 0.95;
}

.card-body {
    padding: 2rem;
    background: #1a1a1a;
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem;
    border: 2px solid #3d0000;
    background: #0d0d0d;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #DC143C;
    background: #1a1a1a;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #A00000 0%, #FF1744 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.6);
}

.btn-download {
    background: linear-gradient(135deg, #600000 0%, #8B0000 100%);
    border: 2px solid #DC143C;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.btn-download:hover {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    border-color: #FF1744;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.6);
    color: white;
    text-decoration: none;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(56, 239, 125, 0.4);
}

.alert {
    border-radius: 10px;
    border: none;
    animation: slideDown 0.3s ease-out;
}

.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: all 0.3s ease;
}

.form-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #b0b0b0;
}

.form-label {
    color: #e0e0e0;
    font-weight: 500;
}

.password-weak {
    background-color: #dc3545 !important;
}

.password-medium {
    background-color: #ffc107 !important;
}

.password-strong {
    background-color: #28a745 !important;
}

.password-match {
    color: #28a745;
    font-weight: 500;
}

.password-nomatch {
    color: #dc3545;
    font-weight: 500;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

a {
    color: #DC143C;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF1744;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }

    .card-header h2 {
        font-size: 1.5rem;
    }
}

/* Input validation states */
.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* Custom alert styles */
.alert-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
}

.alert-danger {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    color: white;
    border: none;
}

.alert-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
}

.alert-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}

.btn-close {
    filter: invert(1);
}

/* Loading state */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
