* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #000000;
    overflow-x: hidden;
}

.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
}

/* Elementos decorativos de fundo */
.main-container::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 300px;
    height: 300px;
    border: 1px solid #f8f8f8;
    border-radius: 50%;
    z-index: -1;
}

.main-container::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: -5%;
    width: 200px;
    height: 200px;
    border: 1px solid #f8f8f8;
    border-radius: 50%;
    z-index: -1;
}

.login-container {
    width: 100%;
    max-width: 460px;
    position: relative;
}

.login-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 48px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-card:hover {
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.logo-section {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.logo {
    font-size: 2.75rem;
    font-weight: 200;
    color: #000000;
    letter-spacing: 12px;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #000000, transparent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.logo-accent {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

.subtitle {
    color: #666666;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 20px;
    opacity: 0.8;
}

.form-section {
    position: relative;
}

.form-title {
    color: #000000;
    font-size: 1.375rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.form-group {
    margin-bottom: 48px;
    position: relative;
}

.error-fail-validation {
    padding: 1rem;
    background: #ff00002e;
    color: gray;
    border-radius: 4px;
}

.form-label {
    position: absolute;
    top: -16px;
    left: 0;
    color: #000000;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    background: #ffffff;
    padding: 0 12px;
    margin-left: -12px;
    border-radius: 4px;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #e8e8e8;
    font-size: 1.1rem;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #000000;
    font-weight: 300;
    border-radius: 6px;
}

.form-input:focus {
    outline: none;
    border-bottom-color: #000000;
    padding-bottom: 20px;
}

.form-input::placeholder {
    color: #aaaaaa;
    font-weight: 300;
    transition: all 0.3s ease;
}

.form-input:focus::placeholder {
    opacity: 0;
    transform: translateY(-8px);
}

.form-input:focus+.input-line {
    width: 100%;
}

.form-input:focus~.form-label {
    opacity: 1;
    transform: translateY(0);
    color: #000000;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #000000, #333333, #000000);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-input:valid:not(:placeholder-shown)~.form-label {
    opacity: 1;
    transform: translateY(0);
    color: #666666;
}

.login-button {
    width: 100%;
    padding: 20px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 32px;
    position: relative;
    overflow: hidden;
}

.login-button::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.6s ease;
}

.login-button:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.security-notice {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    color: #666666;
    font-size: 0.8rem;
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.security-notice::before {
    content: '🔒';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Estados de validação - APENAS EFEITOS POSITIVOS */
.form-input:valid {
    border-bottom-color: #22c55e;
}

.form-input:valid+.input-line {
    background: linear-gradient(90deg, #22c55e, #16a34a, #22c55e);
}

/* Removidos os efeitos vermelhos/negativos:
.form-input:invalid:not(:placeholder-shown) {
    border-bottom-color: #ef4444;
}

.form-input:invalid:not(:placeholder-shown)+.input-line {
    background: linear-gradient(90deg, #ef4444, #dc2626, #ef4444);
}
*/

.footer {
    background: #000000;
    color: #ffffff;
    padding: 100px 20px 60px;
    margin-top: 120px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #333333, transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 80px;
    margin-bottom: 100px;
}

.service-column {
    padding: 0;
    position: relative;
}

.service-column::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 4px;
    height: 4px;
    background: #666666;
    border-radius: 50%;
}

.service-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 32px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 16px;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, #666666, transparent);
}

.service-list {
    list-style: none;
}

.service-item {
    color: #cccccc;
    padding: 12px 0;
    font-size: 0.875rem;
    line-height: 1.7;
    font-weight: 300;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
    cursor: pointer;
}

.service-item::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #666666;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.service-item:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.service-item:hover::before {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #222222;
    padding-top: 60px;
    text-align: center;
}

.footer-info {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    color: #999999;
    font-size: 0.875rem;
    font-weight: 300;
}

.footer-info div {
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.footer-info div:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Loading state melhorado */
.loading {
    pointer-events: none;
    background: #333333;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsividade aprimorada */
@media (max-width: 768px) {
    .main-container {
        padding: 40px 15px;
    }

    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .logo {
        font-size: 2.25rem;
        letter-spacing: 8px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-info {
        flex-direction: column;
        gap: 24px;
    }

    .footer {
        padding: 80px 20px 40px;
        margin-top: 80px;
    }

    .main-container::before,
    .main-container::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.875rem;
        letter-spacing: 6px;
    }

    .login-card {
        padding: 24px 20px;
    }

    .form-group {
        margin-bottom: 40px;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visível para acessibilidade */
.login-button:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 4px;
}

.form-input:focus-visible {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}