/* BondFlow Login - CSS */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Archivo', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Variáveis CSS */
:root {
    --crm-blue: #2563EB;
    --crm-indigo: #1E40AF;
    --crm-red: #DC2626;
    --crm-orange: #EF4444;
    --crm-dark: #0a0e27;
    --crm-light: #f8fafc;
    --crm-gray: #64748b;
}

/* Container Principal */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Background Gradient */
.login-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--crm-blue) 0%, var(--crm-indigo) 100%);
}

/* Animated Background Elements */
.decoration-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.decoration-1 {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    opacity: 0.2;
    background: radial-gradient(circle, white 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.decoration-2 {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    opacity: 0.2;
    background: radial-gradient(circle, var(--crm-red) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

/* Decorative Grid */
.decorative-grid {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Back Button */
.back-button {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 20;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

    .back-button:hover {
        transform: scale(1.05);
    }

/* Login Card */
.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 26rem;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease-out;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.logo-image {
    height: 35px;
    width: auto;
}

.logo-text {
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--crm-dark);
    letter-spacing: -0.02em;
}

/* Title */
.title-container {
    text-align: center;
    margin-bottom: 1.25rem;
}

.title {
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--crm-dark);
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--crm-gray);
    font-size: 0.8125rem;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--crm-dark);
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Input Fields */
.form-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: var(--crm-dark);
    font-family: 'Archivo', sans-serif;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

    .form-input:focus {
        outline: none;
        border-color: var(--crm-blue);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .form-input::placeholder {
        color: #94a3b8;
    }

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-input {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    accent-color: var(--crm-blue);
    cursor: pointer;
}

.checkbox-text {
    font-size: 0.875rem;
    color: var(--crm-gray);
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--crm-blue);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

    .forgot-link:hover {
        opacity: 0.7;
    }

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--crm-blue), var(--crm-indigo));
    color: white;
    font-family: 'Sora', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

    .submit-button:hover {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
    }

    .submit-button:active {
        transform: scale(0.98);
    }

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider-text {
    font-size: 0.8125rem;
    color: var(--crm-gray);
}

/* Register Section */
.register-section {
    text-align: center;
}

.register-text {
    color: var(--crm-gray);
    font-size: 0.8125rem;
}

.register-link {
    color: var(--crm-blue);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

    .register-link:hover {
        opacity: 0.7;
    }

/* Footer Info */
.footer-info {
    margin-top: 1rem;
    text-align: center;
}

.footer-text {
    font-size: 0.6875rem;
    color: var(--crm-gray);
    line-height: 1.4;
}

.footer-link {
    color: var(--crm-blue);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

    .footer-link:hover {
        opacity: 0.7;
    }

/* Trust Badge */
.trust-badge {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-badge-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.trust-badge-icon {
    font-size: 1.25rem;
}

.trust-badge-text {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

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

/* Responsive */
@media (max-width: 640px) {
    .login-card {
        padding: 1.25rem;
    }

    .logo-text {
        font-size: 1.125rem;
    }

    .title {
        font-size: 1.25rem;
    }

    .decoration-1,
    .decoration-2 {
        width: 300px;
        height: 300px;
    }

    .trust-badge {
        bottom: 1rem;
        padding: 0.5rem 1rem;
    }

    .trust-badge-text {
        font-size: 0.75rem;
    }

    .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Dark Mode Support (Opcional) */
@media (prefers-color-scheme: dark) {
    .login-card {
        background: rgba(10, 14, 39, 0.95);
    }

    .logo-text,
    .title {
        color: white;
    }

    .form-input {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .form-label {
        color: rgba(255, 255, 255, 0.9);
    }

    .subtitle,
    .checkbox-text,
    .register-text,
    .footer-text {
        color: rgba(255, 255, 255, 0.7);
    }
}
