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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 400px;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-container {
    position: relative;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #FF0000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo-svg {
    width: 20px;
    height: 20px;
    color: white;
    fill: white;
}

.logo-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #FF0000;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 20px;
    font-weight: 700;
    color: #FF0000;
    line-height: 1;
}

.logo-subtitle {
    font-size: 12px;
    color: #666666;
    line-height: 1;
    margin-top: 2px;
}

.welcome-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.3;
}

.welcome-subtitle {
    font-size: 14px;
    color: #666666;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

.login-form {
    width: 100%;
}

.input-group {
    margin-bottom: 12px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.input-group input:focus {
    border-color: #999999;
    background: #fff;
}

.input-group input::placeholder {
    color: #999999;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    min-height: 20px;
}

.login-button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #FF0000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.login-button:hover {
    background: #e60000;
}

.login-button:active {
    background: #cc0000;
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-text {
    display: inline-block;
    transition: opacity 0.3s;
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.login-button.loading .button-text {
    opacity: 0;
}

.login-button.loading .button-loader {
    display: block;
}

.footer-text {
    text-align: center;
    margin-top: 32px;
    font-size: 12px;
    color: #666666;
    line-height: 1.5;
}

.footer-text .link {
    color: #666666;
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-text .link:hover {
    color: #333333;
}

/* Responsividade */
@media (max-width: 480px) {
    .login-card {
        padding: 40px 24px;
        border-radius: 20px;
    }
    
    .welcome-title {
        font-size: 22px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-svg {
        width: 16px;
        height: 16px;
    }
    
    .logo-pulse {
        width: 10px;
        height: 10px;
        top: -1px;
        right: -1px;
    }
    
    .logo-title {
        font-size: 18px;
    }
    
    .logo-subtitle {
        font-size: 11px;
    }
    
    .logo-wrapper {
        gap: 10px;
    }
}
