/* Minha Meta de Treino - Custom Styles */

:root {
    /* Paleta de cores fitness - Energy Orange & Dark */
    --bs-primary: #FC4C02;
    --bs-dark: #212529;

    --primary-gradient: linear-gradient(135deg, #FC4C02 0%, #ff8c42 100%);
    --fitness-gradient: linear-gradient(135deg, #FC4C02 0%, #ff6b35 100%);
    --energy-gradient: linear-gradient(135deg, #FC4C02 0%, #ffc107 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --danger-gradient: linear-gradient(135deg, #fc466b 0%, #3f5efb 100%);

    /* Cores sólidas */
    --primary-color: #FC4C02;
    --secondary-color: #212529;
    --accent-color: #ff8c42;
    --success-color: #43e97b;
    --warning-color: #fa709a;
    --danger-color: #fc466b;

    /* Neutros */
    --dark: #212529;
    --dark-light: #343a40;
    --light: #f8f9fa;
    --border: #dee2e6;
}

/* Bootstrap Overrides */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e54502;
    border-color: #d13e02;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Mobile-first approach */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

/* Background minimalista com pulsos cardíacos */
body.auth-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

/* Pulsos cardíacos - efeito minimalista */
.auth-pulse-1,
.auth-pulse-2,
.auth-pulse-3 {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.auth-pulse-1 {
    border: 2px solid rgba(102, 126, 234, 0.15);
    animation: heartbeat 2s ease-in-out infinite;
}

.auth-pulse-2 {
    border: 2px solid rgba(245, 87, 108, 0.15);
    animation: heartbeat 2s ease-in-out infinite;
    animation-delay: 0.33s;
}

.auth-pulse-3 {
    border: 2px solid rgba(67, 233, 123, 0.15);
    animation: heartbeat 2s ease-in-out infinite;
    animation-delay: 0.66s;
}

@keyframes heartbeat {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Cards modernos */
.card {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: white;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--fitness-gradient);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Logo/Brand animado */
.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--fitness-gradient);
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
}

.brand-logo::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: ripple 2s ease-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.brand-logo i {
    font-size: 2.5rem;
    color: white;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Títulos */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-title {
    background: var(--fitness-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Botões modernos */
.btn {
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: var(--fitness-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Inputs modernos */
.form-control,
.form-select {
    border-radius: 0.75rem;
    border: 2px solid var(--border);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-control-lg,
.form-select-lg {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--primary-color);
}

/* Navbar moderna */
.navbar {
    background: var(--bs-dark) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand i {
    font-size: 1.75rem;
    animation: bounce 2s ease-in-out infinite;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    transform: translateY(-2px);
}

/* Status badges */
.badge-status-green {
    background: var(--success-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
}

.badge-status-yellow {
    background: var(--warning-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
}

.badge-status-red {
    background: var(--danger-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
}

/* Progress bars */
.progress {
    height: 1rem;
    border-radius: 1rem;
    background: var(--border);
    overflow: hidden;
}

.progress-bar {
    background: var(--fitness-gradient);
    transition: width 0.6s ease;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(67, 233, 123, 0.1);
    border-left-color: var(--success-color);
    color: #22543d;
}

.alert-danger {
    background: rgba(252, 70, 107, 0.1);
    border-left-color: var(--danger-color);
    color: #742a2a;
}

.alert-warning {
    background: rgba(250, 112, 154, 0.1);
    border-left-color: var(--warning-color);
    color: #744210;
}

.alert-info {
    background: rgba(102, 126, 234, 0.1);
    border-left-color: var(--primary-color);
    color: #2c5282;
}

/* Animações de entrada */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Container auth */
.auth-container {
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

/* Container principal para centralização */
body.auth-page .container-fluid {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* Ícones animados */
.icon-animated {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .brand-logo {
        width: 60px;
        height: 60px;
    }

    .brand-logo i {
        font-size: 2rem;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .card {
        margin: 1rem;
        border-radius: 1rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Print styles */
@media print {

    .navbar,
    .btn,
    .alert {
        display: none !important;
    }
}