﻿:root {
    --orange-primary: #ff8c00;
    --orange-dark: #e94e1b;
    --orange-glow: rgba(255, 140, 0, 0.3);
    --gray-900: #1a1a1a;
    --gray-800: #2d2d2d;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-500: #6b6b6b;
    --gray-400: #8a8a8a;
    --gray-300: #a3a3a3;
    --gray-200: #d4d4d4;
    --gray-100: #f0f0f0;
    --gray-50: #f8f8f8;
    --surface: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #525252;
    --text-muted: #8a8a8a;
    --border: #d4d4d4;
    --error: #dc2626;
}

.login-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'DM Sans', sans-serif;
}

/* Hero Section */
.hero-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    margin-bottom: 1rem;
}

    .hero-badge svg {
        width: 12px;
        height: 12px;
    }

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.feature-icon {
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .feature-icon svg {
        width: 14px;
        height: 14px;
        stroke: var(--orange-primary);
    }

/* Form Section */
.form-section {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
}

.form-header {
    margin-bottom: 1.25rem;
}

    .form-header h2 {
        font-family: 'Outfit', sans-serif;
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.375rem;
    }

    .form-header p {
        color: var(--text-muted);
        font-size: 0.8125rem;
    }

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

    .form-label svg {
        width: 14px;
        height: 14px;
        stroke: var(--gray-500);
    }

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-left: 2.75rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 10px;
    transition: all 0.25s ease;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

    .form-input::placeholder {
        color: var(--text-muted);
        text-transform: none;
        letter-spacing: normal;
    }

    .form-input:focus {
        outline: none;
        border-color: var(--orange-primary);
        box-shadow: 0 0 0 3px var(--orange-glow);
    }

    .form-input.input-validation-error {
        border-color: var(--error);
    }

.input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--gray-400);
    transition: stroke 0.25s ease;
    pointer-events: none;
}

.form-input:focus ~ .input-icon {
    stroke: var(--orange-primary);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

    .form-hint svg {
        width: 12px;
        height: 12px;
        stroke: var(--gray-400);
    }

/* Button */
.btn-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 0.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px -3px var(--orange-glow);
}

    .btn-submit::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 ease;
    }

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px -5px rgba(233, 78, 27, 0.5);
    }

        .btn-submit:hover::before {
            left: 100%;
        }

    .btn-submit:active {
        transform: translateY(0);
    }

    .btn-submit svg {
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
    }

    .btn-submit:hover svg {
        transform: translateX(4px);
    }

/* Error Message */
.error-message {
    display: none;
    padding: 0.75rem 1rem;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    color: var(--error);
    font-size: 0.8125rem;
    align-items: center;
    gap: 0.625rem;
    animation: shake 0.5s ease;
}

    .error-message.show {
        display: flex;
    }

@@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.error-message svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Help Section */
.help-section {
    margin-top: 1.25rem;
    text-align: center;
}

.help-text {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.help-link {
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

    .help-link:hover {
        color: var(--orange-dark);
        text-decoration: underline;
    }

/* Loading State */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.9;
}

    .btn-submit.loading .btn-text,
    .btn-submit.loading .btn-icon {
        visibility: hidden;
    }

.spinner {
    display: none;
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-submit.loading .spinner {
    display: block;
}

@@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* TABLET - 768px e acima */
@@media (min-width: 768px) {
    .login-container {
        max-width: 560px;
    }

    .hero-section {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

        .hero-badge svg {
            width: 14px;
            height: 14px;
        }

    .hero-title {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .features-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .feature-item {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 200px;
        font-size: 0.875rem;
        gap: 0.75rem;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

        .feature-icon svg {
            width: 18px;
            height: 18px;
        }

    .form-section {
        padding: 1.75rem;
        border-radius: 14px;
    }

    .form-header {
        margin-bottom: 1.5rem;
    }

        .form-header h2 {
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
        }

        .form-header p {
            font-size: 0.875rem;
        }

    .login-form {
        gap: 1.25rem;
    }

    .form-group {
        gap: 0.5rem;
    }

    .form-label {
        font-size: 0.875rem;
        gap: 0.5rem;
    }

        .form-label svg {
            width: 16px;
            height: 16px;
        }

    .form-input {
        padding: 1rem 1.125rem;
        padding-left: 3rem;
        font-size: 1.0625rem;
        border-radius: 12px;
    }

    .input-icon {
        left: 1rem;
        width: 20px;
        height: 20px;
    }

    .form-hint {
        font-size: 0.8125rem;
        gap: 0.375rem;
    }

        .form-hint svg {
            width: 14px;
            height: 14px;
        }

    .btn-submit {
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 12px;
        gap: 0.75rem;
        margin-top: 0.5rem;
    }

        .btn-submit svg {
            width: 20px;
            height: 20px;
        }

    .error-message {
        padding: 0.875rem 1.125rem;
        border-radius: 10px;
        font-size: 0.875rem;
        gap: 0.75rem;
    }

        .error-message svg {
            width: 20px;
            height: 20px;
        }

    .help-section {
        margin-top: 1.5rem;
    }

    .help-text {
        font-size: 0.875rem;
    }

    .spinner {
        width: 22px;
        height: 22px;
    }
}

/* DESKTOP - 1024px e acima */
@@media (min-width: 1024px) {
    .login-container {
        max-width: 640px;
    }

    .hero-section {
        margin-bottom: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .hero-badge {
        padding: 0.5rem 1.125rem;
        font-size: 0.8125rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
        line-height: 1.7;
    }

    .features-list {
        gap: 1.25rem;
    }

    .feature-item {
        font-size: 0.9375rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

        .feature-icon svg {
            width: 20px;
            height: 20px;
        }

    .form-section {
        padding: 2rem;
        border-radius: 16px;
    }

    .form-header h2 {
        font-size: 1.375rem;
    }

    .form-header p {
        font-size: 0.9375rem;
    }

    .form-input {
        padding: 1.125rem 1.25rem;
        padding-left: 3.25rem;
        font-size: 1.125rem;
    }

    .input-icon {
        left: 1.125rem;
    }

    .form-hint {
        font-size: 0.875rem;
    }

    .btn-submit {
        padding: 1.125rem 2rem;
        font-size: 1.0625rem;
    }

    .help-text {
        font-size: 0.9375rem;
    }
}

/* DESKTOP LARGE - 1280px e acima */
@@media (min-width: 1280px) {
    .login-container {
        max-width: 700px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .features-list {
        gap: 1.5rem;
    }

    .feature-item {
        font-size: 1rem;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

        .feature-icon svg {
            width: 22px;
            height: 22px;
        }

    .form-section {
        padding: 2.5rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }
}
