/* ===== Login Page - Chrome OS Style ===== */

.login-page {
    background: #f0f4f8;
    background-image:
        linear-gradient(135deg, #667eea 0%, #764ba2 100%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 40px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Header - Chrome OS Style */
.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 64px;
    color: #5f6368;
    margin-bottom: 4px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 400;
    color: #202124;
    margin: 0;
    letter-spacing: -0.5px;
}

.logo .version {
    font-size: 11px;
    color: #5f6368;
    font-weight: 500;
    margin-top: 4px;
}

/* Form */
.login-form-container {
    margin-bottom: 24px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form label {
    color: #5f6368;
    font-weight: 500;
    font-size: 13px;
    display: none; /* Chrome OS não mostra labels, apenas placeholders */
}

.login-form label i {
    display: none;
}

/* Input wrapper - Chrome OS Style (sem ícones internos) */
.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    display: none; /* Chrome OS não usa ícones dentro dos inputs */
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #ffffff;
    color: #202124;
    font-size: 16px;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, sans-serif;
}

.input-wrapper input::placeholder {
    color: #80868b;
}

.input-wrapper input:hover {
    border-color: #b8bdc3;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #1a73e8;
    border-width: 2px;
    padding: 13px 15px; /* Compensar border maior */
}

/* Botão toggle senha - Chrome OS style */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.toggle-password:hover {
    background: rgba(0, 0, 0, 0.04);
}

.toggle-password i {
    font-size: 18px;
}

/* Botão de login - Chrome OS Style */
.login-btn {
    background: #1a73e8;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: 20px;
    letter-spacing: 0.25px;
}

.login-btn:hover {
    background: #1765cc;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.4);
}

.login-btn:active {
    background: #1557b0;
}

.login-btn i {
    font-size: 18px;
}

.login-btn span {
    font-size: 15px;
    font-weight: 500;
}

/* Footer - Chrome OS Style */
.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e8eaed;
}

.login-footer p {
    color: #5f6368;
    font-size: 12px;
    margin: 0;
    font-weight: 400;
}

/* Mensagens - Chrome OS Style */
.message-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 14px 20px;
    border-radius: 8px;
    background: #ffffff;
    color: #202124;
    font-weight: 400;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
    border-left: 4px solid #5f6368;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-success {
    border-left-color: #1e8e3e;
    background: #e6f4ea;
    color: #137333;
}

.message-error {
    border-left-color: #d93025;
    background: #fce8e6;
    color: #c5221f;
}

.message-info {
    border-left-color: #1a73e8;
    background: #e8f0fe;
    color: #185abc;
}

/* Responsive */
@media (max-width: 600px) {
    .login-container {
        max-width: 100%;
        padding: 16px;
    }

    .login-box {
        padding: 36px 28px;
        border-radius: 16px;
    }

    .logo i {
        font-size: 56px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .message-container {
        top: 16px;
        right: 16px;
        left: 16px;
    }
}
